diff --git a/CHANGES.md b/CHANGES.md index baa421594..4bc1fe3f2 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,10 @@ #### [unreleased] +#### 10.6.15 / 2022-03-02 +* show overridden plugins/themes by [Skip Updates](https://wordpress.org/plugins/skip-updates/) plugin in Git Updater Settings tab +* use `sanitize_key()` for nonces +* update Freemius/wordpress-sdk + #### 10.6.14 / 2022-02-05 * allow hooks to run if no settings to be saved in `Settings::update_settings()` * composer update diff --git a/composer.lock b/composer.lock index a472dbcb3..63169b1a1 100644 --- a/composer.lock +++ b/composer.lock @@ -102,16 +102,16 @@ }, { "name": "afragen/wp-dependency-installer", - "version": "4.3.3", + "version": "4.3.4", "source": { "type": "git", "url": "https://github.com/afragen/wp-dependency-installer.git", - "reference": "5947e52d91969d2fc8e47a25c02325643b154ec8" + "reference": "d13c7f2caab8781758c46ebef508953ce98259db" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/afragen/wp-dependency-installer/zipball/5947e52d91969d2fc8e47a25c02325643b154ec8", - "reference": "5947e52d91969d2fc8e47a25c02325643b154ec8", + "url": "https://api.github.com/repos/afragen/wp-dependency-installer/zipball/d13c7f2caab8781758c46ebef508953ce98259db", + "reference": "d13c7f2caab8781758c46ebef508953ce98259db", "shasum": "" }, "require": { @@ -158,7 +158,7 @@ "type": "github" } ], - "time": "2022-02-05T23:04:53+00:00" + "time": "2022-02-08T22:15:57+00:00" }, { "name": "afragen/wp-dismiss-notice", diff --git a/git-updater.php b/git-updater.php index 9d8c76684..d768e07bf 100644 --- a/git-updater.php +++ b/git-updater.php @@ -12,7 +12,7 @@ * Plugin Name: Git Updater * Plugin URI: https://git-updater.com * Description: A plugin to automatically update GitHub hosted plugins, themes, and language packs. Additional API plugins available for Bitbucket, GitLab, Gitea, and Gist. - * Version: 10.6.14 + * Version: 10.6.15 * Author: Andy Fragen * License: MIT * Domain Path: /languages diff --git a/src/Git_Updater/Add_Ons.php b/src/Git_Updater/Add_Ons.php index 1be7ce1a8..04fb7ce41 100644 --- a/src/Git_Updater/Add_Ons.php +++ b/src/Git_Updater/Add_Ons.php @@ -198,7 +198,7 @@ public function add_admin_page( $tab, $action ) { * Display appropriate notice for Remote Management page action. */ private function admin_page_notices() { - if ( ! isset( $_POST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) ), 'gu_settings' ) ) { + if ( ! isset( $_POST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_key( wp_unslash( $_POST['_wpnonce'] ) ), 'gu_settings' ) ) { return; } $display = isset( $_POST['install_api_plugin'] ) && '1' === $_POST['install_api_plugin']; diff --git a/src/Git_Updater/Base.php b/src/Git_Updater/Base.php index bb40d49b6..120a15518 100644 --- a/src/Git_Updater/Base.php +++ b/src/Git_Updater/Base.php @@ -157,7 +157,7 @@ function () { ); } - if ( isset( $_POST['_wpnonce'], $_POST['gu_refresh_cache'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) ), 'gu_refresh_cache' ) ) { + if ( isset( $_POST['_wpnonce'], $_POST['gu_refresh_cache'] ) && wp_verify_nonce( sanitize_key( wp_unslash( $_POST['_wpnonce'] ) ), 'gu_refresh_cache' ) ) { /** * Fires later in cycle when Refreshing Cache. * diff --git a/src/Git_Updater/Messages.php b/src/Git_Updater/Messages.php index 3808ae2b7..95f151c55 100644 --- a/src/Git_Updater/Messages.php +++ b/src/Git_Updater/Messages.php @@ -45,7 +45,7 @@ public function create_error_message( $type = '' ) { $update_pages = [ 'update-core.php', 'plugins.php', 'themes.php' ]; $settings_pages = [ 'settings.php', 'options-general.php' ]; - if ( ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'gu_settings' ) ) + if ( ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( sanitize_key( wp_unslash( $_GET['_wpnonce'] ) ), 'gu_settings' ) ) && ( ( ! isset( $_GET['page'] ) || 'git-updater' !== $_GET['page'] ) && in_array( $pagenow, $settings_pages, true ) ) || ! in_array( $pagenow, array_merge( $update_pages, $settings_pages ), true ) diff --git a/src/Git_Updater/Plugin.php b/src/Git_Updater/Plugin.php index 4db17cb8d..68de35876 100644 --- a/src/Git_Updater/Plugin.php +++ b/src/Git_Updater/Plugin.php @@ -439,7 +439,7 @@ public function update_site_transient( $transient ) { // Set transient on rollback. if ( isset( $_GET['_wpnonce'], $_GET['plugin'], $_GET['rollback'] ) - && wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'upgrade-plugin_' . $plugin->file ) + && wp_verify_nonce( sanitize_key( wp_unslash( $_GET['_wpnonce'] ) ), 'upgrade-plugin_' . $plugin->file ) ) { $transient->response[ $plugin->file ] = ( new Branch() )->set_rollback_transient( 'plugin', $plugin ); } diff --git a/src/Git_Updater/Settings.php b/src/Git_Updater/Settings.php index b4b166bde..c99c01509 100644 --- a/src/Git_Updater/Settings.php +++ b/src/Git_Updater/Settings.php @@ -68,7 +68,7 @@ public function __construct() { * Check for cache refresh. */ protected function refresh_caches() { - if ( ! isset( $_POST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) ), 'gu_refresh_cache' ) ) { + if ( ! isset( $_POST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_key( wp_unslash( $_POST['_wpnonce'] ) ), 'gu_refresh_cache' ) ) { return; } @@ -256,7 +256,7 @@ private function options_sub_tabs() { * Options page callback. */ public function create_admin_page() { - if ( isset( $_GET['_wpnonce'] ) && ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'gu_settings' ) ) { + if ( isset( $_GET['_wpnonce'] ) && ! wp_verify_nonce( sanitize_key( wp_unslash( $_GET['_wpnonce'] ) ), 'gu_settings' ) ) { return; } $action = is_multisite() ? 'edit.php?action=git-updater' : 'options.php'; @@ -325,7 +325,7 @@ public function create_admin_page() { * Display appropriate notice for Settings page actions. */ private function admin_page_notices() { - if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'gu_settings' ) ) { + if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( sanitize_key( wp_unslash( $_GET['_wpnonce'] ) ), 'gu_settings' ) ) { return; } $display = ( isset( $_GET['updated'] ) && is_multisite() ) @@ -598,6 +598,13 @@ private function display_dot_org_overrides() { */ $overrides = empty( $overrides ) ? apply_filters_deprecated( 'github_updater_override_dot_org', [ [] ], '10.0.0', 'gu_override_dot_org' ) : $overrides; + // Show plugins/themes skipped using Skip Updates plugin. + $skip_updates = get_site_option( 'skip_updates', [] ); + foreach ( $skip_updates as $skip_update ) { + $overrides[] = $skip_update['slug']; + } + $overrides = \array_unique( $overrides ); + if ( ! empty( $overrides ) ) { echo '
' . esc_html__( 'The following plugins or themes might exist on wp.org, but any updates will be downloaded from their respective git repositories.', 'git-updater' ) . '
'; @@ -655,7 +662,7 @@ public function token_callback_checkbox( $args ) { * @link http://benohead.com/wordpress-network-wide-plugin-settings/ */ public function update_settings() { - if ( isset( $_POST['_wpnonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) ), 'git_updater-options' ) ) { + if ( isset( $_POST['_wpnonce'] ) && wp_verify_nonce( sanitize_key( wp_unslash( $_POST['_wpnonce'] ) ), 'git_updater-options' ) ) { if ( ( isset( $_POST['option_page'] ) && 'git_updater' === $_POST['option_page'] ) ) { @@ -689,7 +696,7 @@ public function update_settings() { * @return array|mixed */ private function filter_options() { - if ( ! isset( $_POST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) ), 'git_updater-options' ) ) { + if ( ! isset( $_POST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_key( wp_unslash( $_POST['_wpnonce'] ) ), 'git_updater-options' ) ) { return; } $options = self::$options; @@ -779,7 +786,7 @@ protected function redirect_on_save() { * @return bool */ private function refresh_transients() { - if ( ! isset( $_POST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) ), 'gu_refresh_cache' ) ) { + if ( ! isset( $_POST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_key( wp_unslash( $_POST['_wpnonce'] ) ), 'gu_refresh_cache' ) ) { return false; } if ( isset( $_REQUEST['git_updater_refresh_transients'] ) ) { diff --git a/src/Git_Updater/Theme.php b/src/Git_Updater/Theme.php index c9d950af6..24517dcae 100644 --- a/src/Git_Updater/Theme.php +++ b/src/Git_Updater/Theme.php @@ -642,7 +642,7 @@ public function update_site_transient( $transient ) { // Set transient for rollback. if ( isset( $_GET['_wpnonce'], $_GET['theme'], $_GET['rollback'] ) - && wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'upgrade-theme_' . $theme->slug ) + && wp_verify_nonce( sanitize_key( wp_unslash( $_GET['_wpnonce'] ) ), 'upgrade-theme_' . $theme->slug ) ) { $transient->response[ $theme->slug ] = ( new Branch() )->set_rollback_transient( 'theme', $theme ); } diff --git a/src/Git_Updater/Traits/GU_Trait.php b/src/Git_Updater/Traits/GU_Trait.php index 5a625e7c8..61e1d6b5e 100644 --- a/src/Git_Updater/Traits/GU_Trait.php +++ b/src/Git_Updater/Traits/GU_Trait.php @@ -25,7 +25,7 @@ trait GU_Trait { * @return bool */ public static function is_heartbeat() { - if ( isset( $_POST['action'], $_POST['_nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_nonce'] ) ), 'heartbeat-nonce' ) ) { + if ( isset( $_POST['action'], $_POST['_nonce'] ) && wp_verify_nonce( sanitize_key( wp_unslash( $_POST['_nonce'] ) ), 'heartbeat-nonce' ) ) { return 'heartbeat' === $_POST['action']; } return false; diff --git a/vendor/afragen/wp-dependency-installer/composer.json b/vendor/afragen/wp-dependency-installer/composer.json index a27d0090b..bc3796d3e 100644 --- a/vendor/afragen/wp-dependency-installer/composer.json +++ b/vendor/afragen/wp-dependency-installer/composer.json @@ -1,7 +1,7 @@ { "name": "afragen/wp-dependency-installer", "description": "Library that helps WordPress plugin dependency management.", - "version": "4.3.3", + "version": "4.3.4", "type": "library", "license": "MIT", "authors": [ diff --git a/vendor/afragen/wp-dependency-installer/composer.lock b/vendor/afragen/wp-dependency-installer/composer.lock index 3e38deb1d..64f751d4e 100644 --- a/vendor/afragen/wp-dependency-installer/composer.lock +++ b/vendor/afragen/wp-dependency-installer/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b8862ff91363689d1c7fe048960f159d", + "content-hash": "cdf0be9ba278f0089560dcfde41dc08f", "packages": [ { "name": "afragen/wp-dismiss-notice", diff --git a/vendor/afragen/wp-dependency-installer/wp-dependency-installer.php b/vendor/afragen/wp-dependency-installer/wp-dependency-installer.php index b820b3b03..e5ae959ff 100644 --- a/vendor/afragen/wp-dependency-installer/wp-dependency-installer.php +++ b/vendor/afragen/wp-dependency-installer/wp-dependency-installer.php @@ -366,7 +366,7 @@ public function admin_footer() { */ public function ajax_router() { if ( ! isset( $_POST['nonce'], $_POST['slug'] ) - || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'wp-dependency-installer_' . sanitize_text_field( wp_unslash( $_POST['slug'] ) ) ) + || ! wp_verify_nonce( sanitize_key( wp_unslash( $_POST['nonce'] ) ), 'wp-dependency-installer_' . sanitize_text_field( wp_unslash( $_POST['slug'] ) ) ) ) { return; } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 6e12b55fe..a82a2cc81 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -102,24 +102,24 @@ }, { "name": "afragen/wp-dependency-installer", - "version": "4.3.3", - "version_normalized": "4.3.3.0", + "version": "4.3.4", + "version_normalized": "4.3.4.0", "source": { "type": "git", "url": "https://github.com/afragen/wp-dependency-installer.git", - "reference": "5947e52d91969d2fc8e47a25c02325643b154ec8" + "reference": "d13c7f2caab8781758c46ebef508953ce98259db" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/afragen/wp-dependency-installer/zipball/5947e52d91969d2fc8e47a25c02325643b154ec8", - "reference": "5947e52d91969d2fc8e47a25c02325643b154ec8", + "url": "https://api.github.com/repos/afragen/wp-dependency-installer/zipball/d13c7f2caab8781758c46ebef508953ce98259db", + "reference": "d13c7f2caab8781758c46ebef508953ce98259db", "shasum": "" }, "require": { "afragen/wp-dismiss-notice": "*", "php": ">=5.6" }, - "time": "2022-02-05T23:04:53+00:00", + "time": "2022-02-08T22:15:57+00:00", "type": "library", "installation-source": "dist", "autoload": { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 7eb758405..0d87b1a1a 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -16,7 +16,7 @@ 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '089e23eefd3d661c7a1f4246e38534623f353012', + 'reference' => '6ef7a25b7fa6b6e35a2f35312a78b717686da4e3', 'dev_requirement' => false, ), 'afragen/singleton' => array( @@ -42,12 +42,12 @@ 'dev_requirement' => false, ), 'afragen/wp-dependency-installer' => array( - 'pretty_version' => '4.3.3', - 'version' => '4.3.3.0', + 'pretty_version' => '4.3.4', + 'version' => '4.3.4.0', 'type' => 'library', 'install_path' => __DIR__ . '/../afragen/wp-dependency-installer', 'aliases' => array(), - 'reference' => '5947e52d91969d2fc8e47a25c02325643b154ec8', + 'reference' => 'd13c7f2caab8781758c46ebef508953ce98259db', 'dev_requirement' => false, ), 'afragen/wp-dismiss-notice' => array( diff --git a/vendor/freemius/wordpress-sdk/includes/class-freemius.php b/vendor/freemius/wordpress-sdk/includes/class-freemius.php index f3b3428f7..fba128992 100755 --- a/vendor/freemius/wordpress-sdk/includes/class-freemius.php +++ b/vendor/freemius/wordpress-sdk/includes/class-freemius.php @@ -3550,6 +3550,8 @@ static function _add_debug_section() { * @since 1.1.7.3 */ static function _toggle_debug_mode() { + check_admin_referer( 'fs_toggle_debug_mode' ); + if ( ! is_super_admin() ) { return; } @@ -3571,10 +3573,19 @@ static function _toggle_debug_mode() { * @since 1.2.1.6 */ static function _get_debug_log() { + check_admin_referer( 'fs_get_debug_log' ); + + if ( ! is_super_admin() ) { + return; + } + + $limit = min( ! empty( $_POST['limit'] ) ? absint( $_POST['limit'] ) : 200, 200 ); + $offset = min( ! empty( $_POST['offset'] ) ? absint( $_POST['offset'] ) : 200, 200 ); + $logs = FS_Logger::load_db_logs( fs_request_get( 'filters', false, 'post' ), - ! empty( $_POST['limit'] ) && is_numeric( $_POST['limit'] ) ? $_POST['limit'] : 200, - ! empty( $_POST['offset'] ) && is_numeric( $_POST['offset'] ) ? $_POST['offset'] : 0 + $limit, + $offset ); self::shoot_ajax_success( $logs ); @@ -4447,6 +4458,12 @@ function _add_connectivity_issue_message( $api_result, $is_first_failure = true * @since 1.0.9 */ function _email_about_firewall_issue() { + check_admin_referer( 'fs_resolve_firewall_issues' ); + + if ( ! current_user_can( is_multisite() ? 'manage_options' : 'activate_plugins' ) ) { + return; + } + $this->_admin_notices->remove_sticky( 'failed_connect_api' ); $pong = $this->ping(); @@ -4521,6 +4538,12 @@ function _email_about_firewall_issue() { * @since 1.1.7.4 */ function _retry_connectivity_test() { + check_admin_referer( 'fs_retry_connectivity_test' ); + + if ( ! current_user_can( is_multisite() ? 'manage_options' : 'activate_plugins' ) ) { + return; + } + $this->_admin_notices->remove_sticky( 'failed_connect_api_first' ); $pong = $this->ping(); diff --git a/vendor/freemius/wordpress-sdk/includes/managers/class-fs-admin-notice-manager.php b/vendor/freemius/wordpress-sdk/includes/managers/class-fs-admin-notice-manager.php index cc9d7f916..b238d9b16 100644 --- a/vendor/freemius/wordpress-sdk/includes/managers/class-fs-admin-notice-manager.php +++ b/vendor/freemius/wordpress-sdk/includes/managers/class-fs-admin-notice-manager.php @@ -175,7 +175,12 @@ protected function __construct( * */ function dismiss_notice_ajax_callback() { - $this->_sticky_storage->remove( $_POST['message_id'] ); + check_admin_referer( 'fs_dismiss_notice_action' ); + + if ( ! is_numeric( $_POST['message_id'] ) ) { + $this->_sticky_storage->remove( $_POST['message_id'] ); + } + wp_die(); } @@ -469,4 +474,4 @@ private function get_notices_type() { } #endregion - } \ No newline at end of file + } diff --git a/vendor/freemius/wordpress-sdk/includes/sdk/Exceptions/ArgumentNotExistException.php b/vendor/freemius/wordpress-sdk/includes/sdk/Exceptions/ArgumentNotExistException.php index 56d919113..446ff6e53 100755 --- a/vendor/freemius/wordpress-sdk/includes/sdk/Exceptions/ArgumentNotExistException.php +++ b/vendor/freemius/wordpress-sdk/includes/sdk/Exceptions/ArgumentNotExistException.php @@ -1,4 +1,8 @@ getMessage(); } } - } \ No newline at end of file + } diff --git a/vendor/freemius/wordpress-sdk/includes/sdk/Exceptions/InvalidArgumentException.php b/vendor/freemius/wordpress-sdk/includes/sdk/Exceptions/InvalidArgumentException.php index 685752a59..4840d9ecf 100755 --- a/vendor/freemius/wordpress-sdk/includes/sdk/Exceptions/InvalidArgumentException.php +++ b/vendor/freemius/wordpress-sdk/includes/sdk/Exceptions/InvalidArgumentException.php @@ -1,8 +1,12 @@ - \ No newline at end of file + diff --git a/vendor/freemius/wordpress-sdk/templates/ajax-loader.php b/vendor/freemius/wordpress-sdk/templates/ajax-loader.php index bc116f877..97ff60be2 100644 --- a/vendor/freemius/wordpress-sdk/templates/ajax-loader.php +++ b/vendor/freemius/wordpress-sdk/templates/ajax-loader.php @@ -1 +1,6 @@ - \ No newline at end of file + + diff --git a/vendor/freemius/wordpress-sdk/templates/debug.php b/vendor/freemius/wordpress-sdk/templates/debug.php index 890363111..4dbf3a3cd 100644 --- a/vendor/freemius/wordpress-sdk/templates/debug.php +++ b/vendor/freemius/wordpress-sdk/templates/debug.php @@ -37,6 +37,8 @@ $.post( ajaxurl, { action: 'fs_toggle_debug_mode', + // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline. + _wpnonce : , is_on : ($(this).hasClass( 'fs-on' ) ? 1 : 0) }, function ( response ) { if ( 1 == response ) { @@ -111,7 +113,8 @@ if (optionName) { $.post(ajaxurl, { action : 'fs_get_db_option', - _wpnonce : '', + // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline. + _wpnonce : , option_name: optionName }, function (response) { if (response.data.value) @@ -131,7 +134,8 @@ if (optionValue) { $.post(ajaxurl, { action : 'fs_set_db_option', - _wpnonce : '', + // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline. + _wpnonce : , option_name : optionName, option_value: optionValue }, function () { @@ -724,6 +728,8 @@ class="dashicons dashicons-download"> , filters: filters, offset : offset, limit : limit diff --git a/vendor/freemius/wordpress-sdk/templates/firewall-issues-js.php b/vendor/freemius/wordpress-sdk/templates/firewall-issues-js.php index 2abfbc0e7..6a3f2a573 100755 --- a/vendor/freemius/wordpress-sdk/templates/firewall-issues-js.php +++ b/vendor/freemius/wordpress-sdk/templates/firewall-issues-js.php @@ -22,10 +22,12 @@ notice = $( this ).parents( '.fs-notice' ), ajaxActionSuffix = notice.attr( 'data-manager-id' ).replace( ':', '-' ); - var data = { - action : 'fs_resolve_firewall_issues_' + ajaxActionSuffix, - error_type: error_type - }; + var data = { + action : 'fs_resolve_firewall_issues_' + ajaxActionSuffix, + // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline. + _wpnonce : , + error_type: error_type + }; if ( 'squid' === error_type ) { data.hosting_company = prompt( 'What is the name or URL of your hosting company?' ); @@ -39,7 +41,9 @@ } if ( 'retry_ping' === error_type ) { - data.action = 'fs_retry_connectivity_test_' + ajaxActionSuffix; + data.action = 'fs_retry_connectivity_test_' + ajaxActionSuffix; + // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline. + data._wpnonce = ; } $( this ).css({'cursor': 'wait'}); @@ -56,4 +60,4 @@ }); }); }); - \ No newline at end of file + diff --git a/vendor/freemius/wordpress-sdk/templates/partials/network-activation.php b/vendor/freemius/wordpress-sdk/templates/partials/network-activation.php index 06cbff2f5..12f152f9a 100644 --- a/vendor/freemius/wordpress-sdk/templates/partials/network-activation.php +++ b/vendor/freemius/wordpress-sdk/templates/partials/network-activation.php @@ -1,4 +1,9 @@ - \ No newline at end of file + diff --git a/vendor/freemius/wordpress-sdk/templates/sticky-admin-notice-js.php b/vendor/freemius/wordpress-sdk/templates/sticky-admin-notice-js.php index 028a9661c..d6d7ebe80 100755 --- a/vendor/freemius/wordpress-sdk/templates/sticky-admin-notice-js.php +++ b/vendor/freemius/wordpress-sdk/templates/sticky-admin-notice-js.php @@ -23,7 +23,9 @@ notice.fadeOut( 'fast', function() { var data = { - action : 'fs_dismiss_notice_action_' + ajaxActionSuffix, + action : 'fs_dismiss_notice_action_' + ajaxActionSuffix, + // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline. + _wpnonce : , message_id: id }; @@ -36,4 +38,4 @@ }); }); }); - \ No newline at end of file +