Plugin Directory

Changeset 2285634


Ignore:
Timestamp:
04/17/2020 12:07:27 PM (6 years ago)
Author:
vohotv
Message:

Updated to API endpoint v2

Location:
coronavirus/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • coronavirus/trunk/README.txt

    r2282286 r2285634  
    5555== Changelog ==
    5656
    57 = 1.3.3 =
     57= 1.3.4 =
     58* Updated the API to the v2 endpoint. All data should now be displayed again.
     59
     60= 1.3.3 =
    5861* Fixed a bug which incorrectly rendered the admin page for the coronavirus plugin.
    5962
  • coronavirus/trunk/admin/class-coronavirus-admin.php

    r2282286 r2285634  
    8888        if ($hook === 'toplevel_page_coronavirus') {
    8989            wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/coronavirus-admin.css', array(), $this->version, 'all' );
    90            
     90
    9191            wp_enqueue_style( 'bootstrap-css', plugin_dir_url( __FILE__ ) . 'css/bootstrap.min.css');
    9292        }
    93        
     93
    9494    }
    9595
  • coronavirus/trunk/coronavirus.php

    r2282286 r2285634  
    1717 * Plugin URI:        https://github.com/VoHoTv/coronavirus
    1818 * Description:       Display data about the coronavirus.
    19  * Version:           1.3.3
     19 * Version:           1.3.4
    2020 * Author:            Mike Zuidhoek
    2121 * Author URI:        https://mikezuidhoek.com/
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'CORONAVIRUS_VERSION', '1.3.3' );
     38define( 'CORONAVIRUS_VERSION', '1.3.4' );
    3939
    4040/**
  • coronavirus/trunk/includes/class-coronavirus-shared-functionality.php

    r2281640 r2285634  
    3636       
    3737        // // If country attribute is omitted display global data.
    38         $url = empty($country) ? "https://corona.lmao.ninja/all" : "https://corona.lmao.ninja/countries/$country_slug?strict=true";
     38        $url = empty($country) ? "https://corona.lmao.ninja/v2/all" : "https://corona.lmao.ninja/v2/countries/$country_slug?strict=true";
    3939
    4040        $response = wp_remote_get( $url );
Note: See TracChangeset for help on using the changeset viewer.