Skip to content

Commit

Permalink
Bump version to 1.70.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Mar 9, 2022
1 parent 0e8ad77 commit 2a1b356
Show file tree
Hide file tree
Showing 17 changed files with 52 additions and 25 deletions.
2 changes: 1 addition & 1 deletion assets/js/googlesitekit/modules/datastore/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/hooks/useActivateModuleCallback.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/util/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions google-site-kit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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' );

Expand Down
10 changes: 5 additions & 5 deletions includes/Core/Authentication/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ final class Authentication {
/**
* Modules object.
*
* @since n.e.x.t
* @since 1.70.0
*
* @var Modules
*/
Expand Down Expand Up @@ -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.
*
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand Down Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/Core/Modules/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions includes/Core/Modules/Module_With_Service_Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/Core/Modules/Modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/Core/Permissions/Permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/Modules/AdSense.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/Modules/Analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/Modules/Analytics_4.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/Modules/Optimize.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/Modules/Search_Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
29 changes: 28 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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**
Expand Down
2 changes: 1 addition & 1 deletion tests/js/mock-browser-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/includes/Core/Modules/FakeModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2a1b356

Please sign in to comment.