Changeset 2285634
- Timestamp:
- 04/17/2020 12:07:27 PM (6 years ago)
- Location:
- coronavirus/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (1 diff)
-
admin/class-coronavirus-admin.php (modified) (1 diff)
-
coronavirus.php (modified) (2 diffs)
-
includes/class-coronavirus-shared-functionality.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
coronavirus/trunk/README.txt
r2282286 r2285634 55 55 == Changelog == 56 56 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 = 58 61 * Fixed a bug which incorrectly rendered the admin page for the coronavirus plugin. 59 62 -
coronavirus/trunk/admin/class-coronavirus-admin.php
r2282286 r2285634 88 88 if ($hook === 'toplevel_page_coronavirus') { 89 89 wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/coronavirus-admin.css', array(), $this->version, 'all' ); 90 90 91 91 wp_enqueue_style( 'bootstrap-css', plugin_dir_url( __FILE__ ) . 'css/bootstrap.min.css'); 92 92 } 93 93 94 94 } 95 95 -
coronavirus/trunk/coronavirus.php
r2282286 r2285634 17 17 * Plugin URI: https://github.com/VoHoTv/coronavirus 18 18 * Description: Display data about the coronavirus. 19 * Version: 1.3. 319 * Version: 1.3.4 20 20 * Author: Mike Zuidhoek 21 21 * Author URI: https://mikezuidhoek.com/ … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'CORONAVIRUS_VERSION', '1.3. 3' );38 define( 'CORONAVIRUS_VERSION', '1.3.4' ); 39 39 40 40 /** -
coronavirus/trunk/includes/class-coronavirus-shared-functionality.php
r2281640 r2285634 36 36 37 37 // // 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"; 39 39 40 40 $response = wp_remote_get( $url );
Note: See TracChangeset
for help on using the changeset viewer.