From 2a1b35642e331fb2aa6cfca6e53439e65c085192 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Wed, 9 Mar 2022 12:06:55 -0800 Subject: [PATCH] Bump version to 1.70.0. --- .../modules/datastore/modules.js | 2 +- assets/js/hooks/useActivateModuleCallback.js | 2 +- assets/js/util/errors.js | 2 +- google-site-kit.php | 4 +-- .../Core/Authentication/Authentication.php | 10 +++---- includes/Core/Modules/Module.php | 2 +- .../Modules/Module_With_Service_Entity.php | 4 +-- includes/Core/Modules/Modules.php | 2 +- includes/Core/Permissions/Permissions.php | 4 +-- includes/Modules/AdSense.php | 2 +- includes/Modules/Analytics.php | 4 +-- includes/Modules/Analytics_4.php | 2 +- includes/Modules/Optimize.php | 2 +- includes/Modules/Search_Console.php | 2 +- readme.txt | 29 ++++++++++++++++++- tests/js/mock-browser-utils.js | 2 +- .../includes/Core/Modules/FakeModule.php | 2 +- 17 files changed, 52 insertions(+), 25 deletions(-) diff --git a/assets/js/googlesitekit/modules/datastore/modules.js b/assets/js/googlesitekit/modules/datastore/modules.js index 47164d8673c..3bc258d41ab 100644 --- a/assets/js/googlesitekit/modules/datastore/modules.js +++ b/assets/js/googlesitekit/modules/datastore/modules.js @@ -977,7 +977,7 @@ const baseSelectors = { /** * Checks if the given module has access. * - * @since n.e.x.t + * @since 1.70.0 * * @param {Object} state Data store's state. * @param {string} slug Module slug. diff --git a/assets/js/hooks/useActivateModuleCallback.js b/assets/js/hooks/useActivateModuleCallback.js index 3e21470e692..cf32ea14eed 100644 --- a/assets/js/hooks/useActivateModuleCallback.js +++ b/assets/js/hooks/useActivateModuleCallback.js @@ -40,7 +40,7 @@ const { useSelect, useDispatch } = Data; * Returns a callback to activate a module. If the call to activate the module is successful, navigate to the reauthentication URL. * Returns null if the module doesn't exist or the user can't manage options. * - * @since n.e.x.t + * @since 1.70.0 * * @param {string} moduleSlug Module slug. * @return {Function|null} Callback to activate module, null if the module doesn't exist or the user can't manage options. diff --git a/assets/js/util/errors.js b/assets/js/util/errors.js index 824b8b07789..d556ad5c8fd 100644 --- a/assets/js/util/errors.js +++ b/assets/js/util/errors.js @@ -62,7 +62,7 @@ export function isPermissionScopeError( error ) { * Checks if the given error has insufficient permissions reason. * * @since 1.16.0 - * @since n.e.x.t Add support for "forbidden" reason. + * @since 1.70.0 Add support for "forbidden" reason. * * @param {Object} error The error object to check. * @return {boolean} TRUE if it's insufficient permissions error, otherwise FALSE. diff --git a/google-site-kit.php b/google-site-kit.php index 5385befe539..631461e1de6 100644 --- a/google-site-kit.php +++ b/google-site-kit.php @@ -11,7 +11,7 @@ * Plugin Name: Site Kit by Google * Plugin URI: https://sitekit.withgoogle.com * Description: Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web. - * Version: 1.69.0 + * Version: 1.70.0 * Author: Google * Author URI: https://opensource.google.com * License: Apache License 2.0 @@ -24,7 +24,7 @@ } // Define most essential constants. -define( 'GOOGLESITEKIT_VERSION', '1.69.0' ); +define( 'GOOGLESITEKIT_VERSION', '1.70.0' ); define( 'GOOGLESITEKIT_PLUGIN_MAIN_FILE', __FILE__ ); define( 'GOOGLESITEKIT_PHP_MINIMUM', '5.6.0' ); diff --git a/includes/Core/Authentication/Authentication.php b/includes/Core/Authentication/Authentication.php index 33f8aa7e7af..7b8924ac2b1 100644 --- a/includes/Core/Authentication/Authentication.php +++ b/includes/Core/Authentication/Authentication.php @@ -102,7 +102,7 @@ final class Authentication { /** * Modules object. * - * @since n.e.x.t + * @since 1.70.0 * * @var Modules */ @@ -671,7 +671,7 @@ private function cron_refresh_profile_data( $user_id ) { * the current user can read shared data for. * * @since 1.42.0 - * @since n.e.x.t Moved the closure within regiser() to this method. + * @since 1.70.0 Moved the closure within regiser() to this method. * * @param string $screen_id The unique ID of the current WP_Screen. * @@ -697,7 +697,7 @@ private function maybe_refresh_token_for_screen( $screen_id ) { * Proactively refreshes the module owner's OAuth token for all shareable * modules the current user can read shared data for. * - * @since n.e.x.t + * @since 1.70.0 * * @return void */ @@ -720,7 +720,7 @@ private function refresh_shared_module_owner_tokens() { /** * Proactively refreshes the current user's OAuth token. * - * @since n.e.x.t + * @since 1.70.0 * * @return void */ @@ -1399,7 +1399,7 @@ private function filter_features_via_proxy( $feature_enabled, $feature_name ) { * Fetches features from the proxy server and saves it in transient cache, if * they are not already cached. * - * @since n.e.x.t + * @since 1.70.0 * * @return array Array of features or an empty array if the fetch errored. */ diff --git a/includes/Core/Modules/Module.php b/includes/Core/Modules/Module.php index 081134277df..77ebbde60c0 100644 --- a/includes/Core/Modules/Module.php +++ b/includes/Core/Modules/Module.php @@ -707,7 +707,7 @@ private function parse_info( array $info ) { * * @since 1.0.0 * @since 1.49.0 Uses the new `Google_Proxy::setup_url_v2` method when the `serviceSetupV2` feature flag is enabled. - * @since n.e.x.t $datapoint parameter is optional. + * @since 1.70.0 $datapoint parameter is optional. * * @param Exception $e Exception object. * @param string $datapoint Optional. Datapoint originally requested. Default is an empty string. diff --git a/includes/Core/Modules/Module_With_Service_Entity.php b/includes/Core/Modules/Module_With_Service_Entity.php index f7f89ce7ba8..ffdb9101470 100644 --- a/includes/Core/Modules/Module_With_Service_Entity.php +++ b/includes/Core/Modules/Module_With_Service_Entity.php @@ -15,7 +15,7 @@ /** * Interface for a module that includes a service entity. * - * @since n.e.x.t + * @since 1.70.0 * @access private * @ignore */ @@ -24,7 +24,7 @@ interface Module_With_Service_Entity { /** * Checks if the current user has access to the current configured service entity. * - * @since n.e.x.t + * @since 1.70.0 * * @return boolean|WP_Error */ diff --git a/includes/Core/Modules/Modules.php b/includes/Core/Modules/Modules.php index 3138154e587..307ef28b75e 100644 --- a/includes/Core/Modules/Modules.php +++ b/includes/Core/Modules/Modules.php @@ -1264,7 +1264,7 @@ public function get_recoverable_modules() { /** * Gets shared ownership modules. * - * @since n.e.x.t + * @since 1.70.0 * * @return array Shared ownership modules as $slug => $module pairs. */ diff --git a/includes/Core/Permissions/Permissions.php b/includes/Core/Permissions/Permissions.php index b4e2b38bd99..4ea2b753333 100644 --- a/includes/Core/Permissions/Permissions.php +++ b/includes/Core/Permissions/Permissions.php @@ -244,7 +244,7 @@ function( array $allcaps ) { /** * Get dashboard sharing meta permissions for current user. * - * @since n.e.x.t + * @since 1.70.0 * * @return array List meta capabilities as keys and current user permission as value. */ @@ -614,7 +614,7 @@ public static function get_dashboard_sharing_capabilities() { /** * Gets all the meta capabilities specifically added for dashboard sharing. * - * @since n.e.x.t + * @since 1.70.0 * * @return array List of meta capabilities specific to dashboard sharing. */ diff --git a/includes/Modules/AdSense.php b/includes/Modules/AdSense.php index f9feb9357a9..ffc3dea935a 100644 --- a/includes/Modules/AdSense.php +++ b/includes/Modules/AdSense.php @@ -906,7 +906,7 @@ private function render_platform_meta_tags() { /** * Checks if the current user has access to the current configured service entity. * - * @since n.e.x.t + * @since 1.70.0 * * @return boolean|WP_Error */ diff --git a/includes/Modules/Analytics.php b/includes/Modules/Analytics.php index a5efccac053..674e69c963e 100644 --- a/includes/Modules/Analytics.php +++ b/includes/Modules/Analytics.php @@ -1143,7 +1143,7 @@ protected function has_access_to_property( $property_id ) { * Transforms an exception into a WP_Error object. * * @since 1.0.0 - * @since n.e.x.t $datapoint parameter is optional. + * @since 1.70.0 $datapoint parameter is optional. * * @param Exception $e Exception object. * @param string $datapoint Optional. Datapoint originally requested. Default is an empty string. @@ -1407,7 +1407,7 @@ public function handle_token_response_data( $token_response ) { /** * Checks if the current user has access to the current configured service entity. * - * @since n.e.x.t + * @since 1.70.0 * * @return boolean|WP_Error */ diff --git a/includes/Modules/Analytics_4.php b/includes/Modules/Analytics_4.php index e668197ac4d..9af167c1094 100644 --- a/includes/Modules/Analytics_4.php +++ b/includes/Modules/Analytics_4.php @@ -734,7 +734,7 @@ public static function normalize_property_id( $property_id ) { /** * Checks if the current user has access to the current configured service entity. * - * @since n.e.x.t + * @since 1.70.0 * * @return boolean|WP_Error */ diff --git a/includes/Modules/Optimize.php b/includes/Modules/Optimize.php index c3a4e9aab78..4f1cb9315ee 100644 --- a/includes/Modules/Optimize.php +++ b/includes/Modules/Optimize.php @@ -286,7 +286,7 @@ private function register_tag() { /** * Checks if the current user has access to the current configured service entity. * - * @since n.e.x.t + * @since 1.70.0 * * @return boolean|WP_Error */ diff --git a/includes/Modules/Search_Console.php b/includes/Modules/Search_Console.php index ac5a6788855..4dd3aa8992e 100644 --- a/includes/Modules/Search_Console.php +++ b/includes/Modules/Search_Console.php @@ -576,7 +576,7 @@ public static function is_force_active() { /** * Checks if the current user has access to the current configured service entity. * - * @since n.e.x.t + * @since 1.70.0 * * @return boolean|WP_Error */ diff --git a/readme.txt b/readme.txt index 90f5f81cd12..e961748f195 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Contributors: google Requires at least: 4.7 Tested up to: 5.9 Requires PHP: 5.6 -Stable tag: 1.69.0 +Stable tag: 1.70.0 License: Apache License 2.0 License URI: https://www.apache.org/licenses/LICENSE-2.0 Tags: google, search-console, analytics, adsense, pagespeed-insights, optimize, tag-manager, site-kit @@ -106,6 +106,33 @@ Please create a new topic on our [WordPress.org support forum](https://wordpress == Changelog == += 1.70.0 = + +**Enhanced** + +* Change remote-controlled features request to be cron-based, running twice daily. See [#4856](https://github.com/google/site-kit-wp/issues/4856). +* Enable client to check meta-capabilities for Dashboard Sharing permissions. See [#4804](https://github.com/google/site-kit-wp/issues/4804). +* Add the `hasModuleAccess` selector to the `core/modules` datastore. See [#4802](https://github.com/google/site-kit-wp/issues/4802). +* Add `sharedOwnershipModules` to Site Kit module sharing data. See [#4790](https://github.com/google/site-kit-wp/issues/4790). +* Update the WordPress Dashboard and Admin Bar with new "gathering data" UI for new sites. See [#4711](https://github.com/google/site-kit-wp/issues/4711). +* Add the gathering data state to the `ReportTable` component. See [#4700](https://github.com/google/site-kit-wp/issues/4700). +* Add the gathering data state to the GoogleChart component. See [#4696](https://github.com/google/site-kit-wp/issues/4696). +* Update the CTA notices in the Search Funnel widget. See [#4694](https://github.com/google/site-kit-wp/issues/4694). +* Add a notification for zero data to the Site Kit dashboard. See [#4693](https://github.com/google/site-kit-wp/issues/4693). +* Update DataBlock component to display the new gathering state. See [#4692](https://github.com/google/site-kit-wp/issues/4692). +* Extend some modules with service entity awareness and access checks. See [#4579](https://github.com/google/site-kit-wp/issues/4579). +* Proactively refresh tokens for shared modules when Dashboard Sharing is enabled. See [#4524](https://github.com/google/site-kit-wp/issues/4524). +* Provide client with Dashboard Sharing permissions when Dashboard Sharing is enabled. See [#4523](https://github.com/google/site-kit-wp/issues/4523). +* Add `check-access` endpoint to modules for Dashboard Sharing. See [#4478](https://github.com/google/site-kit-wp/issues/4478). +* Update the `View draft` button on the Idea Hub widget to display an icon instead of the text. See [#4266](https://github.com/google/site-kit-wp/issues/4266). + +**Fixed** + +* Fix OAuth setup loop when creating a new Analytics account. See [#4874](https://github.com/google/site-kit-wp/issues/4874). +* Show only one notification at a time on the Site Kit dashboard. See [#4689](https://github.com/google/site-kit-wp/issues/4689). +* Show error message when landing on module setup URL when the module is not active, or for an invalid module. See [#4654](https://github.com/google/site-kit-wp/issues/4654). +* Update errors handling to correctly process `Forbidden` errors. See [#4543](https://github.com/google/site-kit-wp/issues/4543). + = 1.69.0 = **Enhanced** diff --git a/tests/js/mock-browser-utils.js b/tests/js/mock-browser-utils.js index d75744a31d9..822506c69fa 100644 --- a/tests/js/mock-browser-utils.js +++ b/tests/js/mock-browser-utils.js @@ -19,7 +19,7 @@ /** * Creates a mock global location object. Sets up in beforeAll and tears down in afterAll. * - * @since n.e.x.t + * @since 1.70.0 */ export function mockLocation() { let oldLocation; diff --git a/tests/phpunit/includes/Core/Modules/FakeModule.php b/tests/phpunit/includes/Core/Modules/FakeModule.php index ea0cb2564d9..f4a714ce419 100644 --- a/tests/phpunit/includes/Core/Modules/FakeModule.php +++ b/tests/phpunit/includes/Core/Modules/FakeModule.php @@ -198,7 +198,7 @@ protected function setup_services( Google_Site_Kit_Client $client ) { * Transforms an exception into a WP_Error object. * * @since 1.0.0 - * @since n.e.x.t $datapoint parameter is optional. + * @since 1.70.0 $datapoint parameter is optional. * * @param Exception $e Exception object. * @param string $datapoint Optional. Datapoint originally requested. Default is an empty string.