diff --git a/lib/WPStrava/Settings.php b/lib/WPStrava/Settings.php index 201bea5..9a09ab2 100644 --- a/lib/WPStrava/Settings.php +++ b/lib/WPStrava/Settings.php @@ -711,14 +711,10 @@ class WPStrava_Settings { * @param array $response Response from wp.org. * @author Justin Foell * @since 1.7.3 - * @see https://wisdomplugin.com/add-inline-plugin-update-message/ */ public function plugin_update_message( $data, $response ) { if ( isset( $data['upgrade_notice'] ) ) { - printf( - '
%s
', - wpautop( $data['upgrade_notice'] ) - ); + echo wp_kses_post( $data['upgrade_notice'] ); } } @@ -731,13 +727,13 @@ class WPStrava_Settings { * @since 1.7.3 */ public function ms_plugin_update_message( $file, $plugin ) { - if ( is_multisite() && version_compare( $plugin['Version'], $plugin['new_version'], '<' ) ) { + if ( is_multisite() && ! is_network_admin() && version_compare( $plugin['Version'], $plugin['new_version'], '<' ) ) { $wp_list_table = _get_list_table( 'WP_Plugins_List_Table' ); printf( '

%s

%s
', $wp_list_table->get_column_count(), $plugin['Name'], - wpautop( $plugin['upgrade_notice'] ) + wp_kses_post( $plugin['upgrade_notice'] ) ); } } diff --git a/readme.txt b/readme.txt old mode 100644 new mode 100755 index ec4c838..2259e15 --- a/readme.txt +++ b/readme.txt @@ -233,6 +233,8 @@ Added option to select unit of measurements on the widget. https://wordpress.org Initial version. -== upgrade_notice == +== Upgrade Notice == -The version 2.0 upgrade is coming soon and will be mandatory to use the Strava API after October 15th, 2019. To participate in the 2.0 beta program please visit https://github.com/cmanon/wp-strava/releases. After upgrading to version 2.0, you must upgrade your settings to continue to use WP-Strava 2.0. See https://github.com/cmanon/wp-strava/wiki/2.0-Upgrade. += 1.7.3 = + +Version 2.0 will be mandatory after October 15th, 2019. Try the 2.0 beta: https://github.com/cmanon/wp-strava/releases. 2.0 settings upgrade instructions: https://github.com/cmanon/wp-strava/wiki/2.0-Upgrade.