Skip to content

Commit

Permalink
Bump version to 1.132.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Jul 24, 2024
1 parent 4cc6a60 commit d3a1cdf
Show file tree
Hide file tree
Showing 21 changed files with 101 additions and 65 deletions.
8 changes: 4 additions & 4 deletions assets/js/googlesitekit/datastore/site/consent-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const baseActions = {
/**
* Installs and activates the WP Consent API Plugin on the backend.
*
* @since n.e.x.t
* @since 1.132.0
*/
*installActivateWPConsentAPI() {
const registry = yield getRegistry();
Expand Down Expand Up @@ -231,7 +231,7 @@ const baseActions = {
/**
* Activates the WP Consent API Plugin on the backend.
*
* @since n.e.x.t
* @since 1.132.0
*/
*activateConsentAPI() {
const response =
Expand Down Expand Up @@ -310,7 +310,7 @@ const baseSelectors = {
/**
* Gets the WP Consent API Install/Activate Response.
*
* @since n.e.x.t
* @since 1.132.0
*
* @param {Object} state Data store's state.
* @return {Object|undefined} WP Consent Mode API response, or `undefined` if not loaded.
Expand All @@ -322,7 +322,7 @@ const baseSelectors = {
/**
* Gets the WP Consent API Install/Activate isApiFetching value.
*
* @since n.e.x.t
* @since 1.132.0
*
* @param {Object} state Data store's state.
* @return {boolean|undefined} Gets the value if WP Consent Mode API is currently fetching, or `undefined` if not loaded.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/googlesitekit/modules/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function createModules( { dispatch } ) {
* @since 1.22.0 Introduced the ability to add a checkRequirements function.
* @since 1.23.0 Introduced the ability to register an Icon component.
* @since 1.35.0 Introduced a registry parameter for checkRequirements.
* @since n.e.x.t Introduced dashboard effect components.
* @since 1.132.0 Introduced dashboard effect components.
*
* @param {string} slug Module slug.
* @param {Object} [settings] Optional. Module settings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const actions = {
/**
* Registers a notification with a given `id` slug and settings.
*
* @since n.e.x.t
* @since 1.132.0
*
* @param {string} id Notification's slug.
* @param {Object} settings Notification's settings.
Expand Down Expand Up @@ -108,7 +108,7 @@ export const actions = {
* Currently, this action simply dispatches the call to the dismissed items API.
* We can potentially add more notification-specific dismissal logic here in the future.
*
* @since n.e.x.t
* @since 1.132.0
*
* @param {string} id Notification id to dismiss.
* @param {Object} options Dismiss notification options.
Expand Down Expand Up @@ -169,7 +169,7 @@ export const selectors = {
* Currently, this selector simply forwards the call to the dismissed items API.
* We can potentially add more notification-specific logic here in the future.
*
* @since n.e.x.t
* @since 1.132.0
*
* @param {Object} state Data store's state.
* @param {string} id Notification id.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/googlesitekit/notifications/register-defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { NOTIFICATION_AREAS } from './datastore/constants';
/**
* Registers notifications not specific to any one particular module.
*
* @since n.e.x.t
* @since 1.132.0
*
* @param {Object} notificationsAPI Notifications API.
*/
Expand Down
2 changes: 1 addition & 1 deletion assets/js/hooks/useGlobalTrackingEffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { trackEvent } from '../util';
/**
* Tracks the successful user and site setup.
*
* @since n.e.x.t
* @since 1.132.0
*/
export const useGlobalTrackingEffect = () => {
const viewContext = useViewContext();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import {
* reporting options.
*
* @since 1.113.0
* @since n.e.x.t Update the function to receive the reference date instead of the select function.
* @since 1.132.0 Update the function to receive the reference date instead of the select function.
*
* @param {string} referenceDate The reference date.
* @return {Object} An object containing the `startDate` and `endDate` for a
Expand Down Expand Up @@ -80,7 +80,7 @@ export function getDateRange( referenceDate ) {
* can use it.
*
* @since 1.113.0
* @since n.e.x.t Update the function to receive the reference date instead of the select function.
* @since 1.132.0 Update the function to receive the reference date instead of the select function.
*
* @param {string} referenceDate The reference date.
* @return {Object} The report options containing dimensions, filters,
Expand Down
2 changes: 1 addition & 1 deletion assets/js/modules/analytics-4/datastore/audiences.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const baseActions = {
/**
* Syncs available audiences older than 1 hour.
*
* @since n.e.x.t
* @since 1.132.0
*
* @return {void}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const baseActions = {
* Syncronizes the onboarding state of the publication with the API.
* Updates the settings on the server.
*
* @since n.e.x.t
* @since 1.132.0
*
* @return {void}
*/
Expand Down Expand Up @@ -144,7 +144,7 @@ const baseActions = {
/**
* Finds a matched publication.
*
* @since n.e.x.t
* @since 1.132.0
*
* @return {Object|null} Matched publication; `null` if none found.
*/
Expand Down Expand Up @@ -199,7 +199,7 @@ const baseSelectors = {
/**
* Gets list of publications associated with the account.
*
* @since n.e.x.t
* @since 1.132.0
*
* @param {Object} state Data store's state.
* @return {(Array.<Object>|undefined)} An array of publications; `undefined` if not loaded.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const selectors = {
/**
* Returns a link to the Reader Revenue Manager platform.
*
* @since n.e.x.t
* @since 1.132.0
*
* @param {Object} state Data store's state.
* @param {Object} [args] Object containing optional publication ID, path and query args.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function isValidPublicationID( publicationID ) {
/**
* Checks if the given publication onboarding state is valid.
*
* @since n.e.x.t
* @since 1.132.0
*
* @param {string} onboardingState Publication onboarding state.
* @return {boolean} `true` if the given publication ID is valid, `false` otherwise.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/util/dates.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export function isValidDateRange( dateRange ) {
/**
* Subtracts duration from the prodived date and returns it.
*
* @since n.e.x.t
* @since 1.132.0
*
* @param {Date|string} relativeDate Date string (YYYY-MM-DD) or date object to subtract duration from.
* @param {number} duration The duration in seconds to subtract from relativeDate.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/util/whenInViewContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import useViewOnly from '../hooks/useViewOnly';
/**
* Higher-Order Component to render wrapped components based on view context.
*
* @since n.e.x.t
* @since 1.132.0
*
* @param {Object} options Options for enhancing function.
* @param {boolean} options.allViewOnly Render component when in view only context.
Expand Down
30 changes: 30 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
== Changelog ==

= 1.132.0 =

**Enhanced**

* Implement the dismiss functionality for the new notifications infrastructure. See [#8974](https://github.com/google/site-kit-wp/issues/8974).
* Add Reader Revenue Manager data store functionality to get service URL. See [#8848](https://github.com/google/site-kit-wp/issues/8848).
* Populate the feature list in the Reader Revenue Manager disconnection confirmation modal. See [#8845](https://github.com/google/site-kit-wp/issues/8845).
* Include the Subscribe with Google external JavaScript file and configure it for the Reader Revenue Manager service. See [#8844](https://github.com/google/site-kit-wp/issues/8844).
* Provide the Settings UI to allow a user to select a publication in the Reader Revenue Manager module. See [#8837](https://github.com/google/site-kit-wp/issues/8837).
* Add infrastructure for synchronizing the onboarding state of a publication in the Reader Revenue Manager module. See [#8796](https://github.com/google/site-kit-wp/issues/8796).
* Add Reader Revenue Manager data store functionality to find a matching publication. See [#8795](https://github.com/google/site-kit-wp/issues/8795).
* Add Reader Revenue Manager data store functionality to list available publications. See [#8794](https://github.com/google/site-kit-wp/issues/8794).
* Add Reader Revenue Manager module settings infrastructure. See [#8793](https://github.com/google/site-kit-wp/issues/8793).
* Improve Authorize Application screen action button styling. See [#8584](https://github.com/google/site-kit-wp/issues/8584).
* Allow users to install Consent Mode plugin from Site Kit Settings. See [#8521](https://github.com/google/site-kit-wp/issues/8521).
* Update Consent Mode to prevent enqueuing duplicate consent commands on page load. See [#8387](https://github.com/google/site-kit-wp/issues/8387).
* Update the Consent Mode Setup CTA banner not to be shown if the user toggles the consent mode via settings. See [#8386](https://github.com/google/site-kit-wp/issues/8386).
* Extract inline consent mode JS to external script. See [#8384](https://github.com/google/site-kit-wp/issues/8384).
* Update the layout of the graphic on the Consent Mode Setup CTA banner. See [#8376](https://github.com/google/site-kit-wp/issues/8376).
* Improve the "Top recent trending pages" empty state when no posts have been recently published. See [#8315](https://github.com/google/site-kit-wp/issues/8315).
* Update module infrastructure to add proper support for dashboard effects. See [#8211](https://github.com/google/site-kit-wp/issues/8211).
* Provide the ability to set up the Audience Segmentation feature from the Settings screen. See [#8178](https://github.com/google/site-kit-wp/issues/8178).
* Implement the Audience Segmentation "no audiences" banner. See [#8155](https://github.com/google/site-kit-wp/issues/8155).
* Show a loading state with placeholders for the content while data is being retrieved for an Audience Tile. See [#8145](https://github.com/google/site-kit-wp/issues/8145).

**Fixed**

* Fix measurement of successful setup completion events. See [#9039](https://github.com/google/site-kit-wp/issues/9039).
* Ensure WP Forms events are only sent once when Popup Maker plugin is installed. See [#8944](https://github.com/google/site-kit-wp/issues/8944).

= 1.131.0 =

**Enhanced**
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.131.0
* Version: 1.132.0
* Requires at least: 5.2
* Requires PHP: 7.4
* Author: Google
Expand All @@ -26,7 +26,7 @@
}

// Define most essential constants.
define( 'GOOGLESITEKIT_VERSION', '1.131.0' );
define( 'GOOGLESITEKIT_VERSION', '1.132.0' );
define( 'GOOGLESITEKIT_PLUGIN_MAIN_FILE', __FILE__ );
define( 'GOOGLESITEKIT_PHP_MINIMUM', '7.4.0' );
define( 'GOOGLESITEKIT_WP_MINIMUM', '5.2.0' );
Expand Down
8 changes: 4 additions & 4 deletions includes/Core/Consent_Mode/Consent_Mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Consent_Mode {
/**
* Context instance.
*
* @since n.e.x.t
* @since 1.132.0
* @var Context
*/
protected $context;
Expand Down Expand Up @@ -112,7 +112,7 @@ function () use ( $consent_mode_enabled ) {
* from `admin.php` among others. These functions are properly loaded during the
* AJAX callback, ensuring the installation and activation processes can execute correctly.
*
* @since n.e.x.t
* @since 1.132.0
*/
public function install_activate_wp_consent_api() {
check_ajax_referer( 'updates' );
Expand Down Expand Up @@ -165,7 +165,7 @@ public function install_activate_wp_consent_api() {
/**
* Registers and Enqueues the consent mode script.
*
* @since n.e.x.t
* @since 1.132.0
*/
protected function register_and_enqueue_script() {
$consent_mode_script = new Script(
Expand All @@ -182,7 +182,7 @@ protected function register_and_enqueue_script() {
* Prints the gtag consent snippet.
*
* @since 1.122.0
* @since n.e.x.t Refactored core script to external js file transpiled with webpack.
* @since 1.132.0 Refactored core script to external js file transpiled with webpack.
*/
protected function render_gtag_consent_data_layer_snippet() {
/**
Expand Down
12 changes: 6 additions & 6 deletions includes/Modules/Reader_Revenue_Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function setup_services( Google_Site_Kit_Client $client ) {
/**
* Checks whether the module is connected.
*
* @since n.e.x.t
* @since 1.132.0
*
* @return bool True if module is connected, false otherwise.
*/
Expand All @@ -121,7 +121,7 @@ public function is_connected() {
/**
* Sets up the module's settings instance.
*
* @since n.e.x.t
* @since 1.132.0
*
* @return Module_Settings
*/
Expand All @@ -132,7 +132,7 @@ protected function setup_settings() {
/**
* Cleans up when the module is deactivated.
*
* @since n.e.x.t
* @since 1.132.0
*/
public function on_deactivation() {
$this->get_settings()->delete();
Expand Down Expand Up @@ -317,7 +317,7 @@ protected function setup_assets() {
/**
* Returns the Module_Tag_Matchers instance.
*
* @since n.e.x.t
* @since 1.132.0
*
* @return Module_Tag_Matchers Module_Tag_Matchers instance.
*/
Expand All @@ -328,7 +328,7 @@ public function get_tag_matchers() {
/**
* Registers the Reader Revenue Manager tag.
*
* @since n.e.x.t
* @since 1.132.0
*/
public function register_tag() {
$module_settings = $this->get_settings();
Expand All @@ -354,7 +354,7 @@ public function register_tag() {
/**
* Gets an array of debug field definitions.
*
* @since n.e.x.t
* @since 1.132.0
*
* @return array An array of all debug fields.
*/
Expand Down
12 changes: 6 additions & 6 deletions includes/Modules/Reader_Revenue_Manager/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* Class for RRM settings.
*
* @since n.e.x.t
* @since 1.132.0
* @access private
* @ignore
*/
Expand All @@ -41,7 +41,7 @@ class Settings extends Module_Settings implements Setting_With_Owned_Keys_Interf
/**
* Registers the setting in WordPress.
*
* @since n.e.x.t
* @since 1.132.0
*/
public function register() {
parent::register();
Expand All @@ -52,7 +52,7 @@ public function register() {
/**
* Returns keys for owned settings.
*
* @since n.e.x.t
* @since 1.132.0
*
* @return array An array of keys for owned settings.
*/
Expand All @@ -63,7 +63,7 @@ public function get_owned_keys() {
/**
* Gets the default value.
*
* @since n.e.x.t
* @since 1.132.0
*
* @return array
*/
Expand All @@ -78,7 +78,7 @@ protected function get_default() {
/**
* Returns keys for view-only settings.
*
* @since n.e.x.t
* @since 1.132.0
*
* @return array An array of keys for view-only settings.
*/
Expand All @@ -89,7 +89,7 @@ public function get_view_only_keys() {
/**
* Gets the callback for sanitizing the setting's value before saving.
*
* @since n.e.x.t
* @since 1.132.0
*
* @return callable|null
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/Modules/Reader_Revenue_Manager/Tag_Guard.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* Class for the Reader Revenue Manager tag guard.
*
* @since n.e.x.t
* @since 1.132.0
* @access private
* @ignore
*/
Expand All @@ -24,7 +24,7 @@ class Tag_Guard extends Module_Tag_Guard {
/**
* Determines whether the guarded tag can be activated or not.
*
* @since n.e.x.t
* @since 1.132.0
*
* @return bool|WP_Error TRUE if guarded tag can be activated, otherwise FALSE or an error.
*/
Expand Down
Loading

0 comments on commit d3a1cdf

Please sign in to comment.