Skip to content

Commit

Permalink
Bump version to 1.126.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed May 1, 2024
1 parent 3f77426 commit 2305e61
Show file tree
Hide file tree
Showing 16 changed files with 88 additions and 61 deletions.
2 changes: 1 addition & 1 deletion assets/js/modules/ads/pax/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { CORE_SITE } from '../../../googlesitekit/datastore/site/constants';
/**
* Returns PAX services.
*
* @since n.e.x.t
* @since 1.126.0
*
* @param {Object} registry Registry object to dispatch to.
* @return {Object} An object containing various service interfaces.
Expand Down
4 changes: 2 additions & 2 deletions assets/js/modules/ads/utils/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function isValidConversionID( value ) {
/**
* Checks if the given paxConversionID ID is valid.
*
* @since n.e.x.t
* @since 1.126.0
*
* @param {*} value Ads Conversion Tracking ID to test.
* @return {boolean} Whether or not the given ID is valid.
Expand All @@ -49,7 +49,7 @@ export function isValidPaxConversionID( value ) {
/**
* Checks if the given extCustomerID ID is valid.
*
* @since n.e.x.t
* @since 1.126.0
*
* @param {*} value PAX external customer ID to test.
* @return {boolean} Whether or not the given ID is valid.
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 @@ -93,7 +93,7 @@ const baseActions = {
/**
* Syncs available audiences from the Analytics service.
*
* @since n.e.x.t
* @since 1.126.0
*
* @return {Object} Object with `response` and `error`.
*/
Expand Down
2 changes: 1 addition & 1 deletion assets/js/modules/analytics-4/datastore/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ const baseSelectors = {
*
* TODO: This will be refactored to use pivot reports in #8484.
*
* @since n.e.x.t
* @since 1.126.0
*
* @param {Object} state Data store's state.
* @param {Object} options Options for generating the report.
Expand Down
28 changes: 28 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
== Changelog ==

= 1.126.0 =

**Enhanced**

* Support PAX-supplied Ads Conversion ID in tag output. See [#8580](https://github.com/google/site-kit-wp/issues/8580).
* Add feature that requests AdsWords scope when required. See [#8565](https://github.com/google/site-kit-wp/issues/8565).
* Add PAX settings to Ads settings. See [#8563](https://github.com/google/site-kit-wp/issues/8563).
* Add Ads settings for PAX. See [#8562](https://github.com/google/site-kit-wp/issues/8562).
* Scaffold dependencies for launching PAX. See [#8556](https://github.com/google/site-kit-wp/issues/8556).
* Add the main `Conversion_Tracking` class. See [#8528](https://github.com/google/site-kit-wp/issues/8528).
* Use a Google brand color for the WordPress link in the footer of the Authorize Application screen when authorizing a Google application. See [#8524](https://github.com/google/site-kit-wp/issues/8524).
* Add "Powered by Site Kit" to the Authorize Application screen footer when authorizing a Google application. See [#8510](https://github.com/google/site-kit-wp/issues/8510).
* Update WordPress Authorize Application Screen with enhanced design for Site Kit users. See [#8505](https://github.com/google/site-kit-wp/issues/8505).
* Enqueue stylesheet specific to the Authorize Application screen. See [#8504](https://github.com/google/site-kit-wp/issues/8504).
* Add stylesheet for Authorize Application screen. See [#8503](https://github.com/google/site-kit-wp/issues/8503).
* Replace direct calls to retrieve audiences with use of the cached list of audiences. Props ankitrox. See [#8487](https://github.com/google/site-kit-wp/issues/8487).
* Add REST and datastore APIs for audience caching. Props ankitrox. See [#8486](https://github.com/google/site-kit-wp/issues/8486).
* Add the `googlesitekit_consent_defaults` filter to allow customisation of Consent Mode defaults. Props ankitrox. See [#8383](https://github.com/google/site-kit-wp/issues/8383).
* Remove warning about Ad campaigns in the Consent Mode deactivation modal if Google Ads is not connected. See [#8381](https://github.com/google/site-kit-wp/issues/8381).
* Improve the deprecation warning for the `googlesitekit_analytics-4_tag_block_on_consent` filter. Props ankitrox. See [#8362](https://github.com/google/site-kit-wp/issues/8362).
* Add the Full Width Error Banner for the Audience Segmentation feature as a component in Storybook. See [#8230](https://github.com/google/site-kit-wp/issues/8230).
* Add introductory popup for Audience Segmentation. See [#8171](https://github.com/google/site-kit-wp/issues/8171).
* Add the Audience Tiles widget as a component in Storybook. See [#8136](https://github.com/google/site-kit-wp/issues/8136).

**Fixed**

* Fix bug that could cause the Ads Module's Settings screen not to appear for admin users who did not connect the Ads Module. See [#8598](https://github.com/google/site-kit-wp/issues/8598).

= 1.125.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.125.0
* Version: 1.126.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.125.0' );
define( 'GOOGLESITEKIT_VERSION', '1.126.0' );
define( 'GOOGLESITEKIT_PLUGIN_MAIN_FILE', __FILE__ );
define( 'GOOGLESITEKIT_PHP_MINIMUM', '7.4.0' );
define( 'GOOGLESITEKIT_WP_MINIMUM', '5.2.0' );
Expand Down
18 changes: 9 additions & 9 deletions includes/Core/Admin/Authorize_Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* Class to handle all wp-admin Authorize Application related functionality.
*
* @since n.e.x.t
* @since 1.126.0
* @access private
* @ignore
*/
Expand All @@ -28,23 +28,23 @@ final class Authorize_Application {
/**
* Plugin context.
*
* @since n.e.x.t
* @since 1.126.0
* @var Context
*/
private $context;

/**
* Assets instance.
*
* @since n.e.x.t
* @since 1.126.0
* @var Assets
*/
private $assets;

/**
* Constructor.
*
* @since n.e.x.t
* @since 1.126.0
*
* @param Context $context Plugin context.
* @param Assets $assets Optional. Assets API instance. Default is a new instance.
Expand All @@ -60,7 +60,7 @@ public function __construct(
/**
* Registers functionality through WordPress hooks.
*
* @since n.e.x.t
* @since 1.126.0
*/
public function register() {
add_action( 'admin_enqueue_scripts', $this->get_method_proxy( 'enqueue_assets' ) );
Expand All @@ -70,7 +70,7 @@ public function register() {
/**
* Checks if the current screen is the Authorize Application screen.
*
* @since n.e.x.t
* @since 1.126.0
*
* @return bool True if the current screen is the Authorize Application screen, false otherwise.
*/
Expand All @@ -87,7 +87,7 @@ protected function is_authorize_application_screen() {
/**
* Checks if the current service is a Google service.
*
* @since n.e.x.t
* @since 1.126.0
*
* @return bool True if the current service is a Google service, false otherwise.
*/
Expand All @@ -108,7 +108,7 @@ protected function is_google_service() {
/**
* Enqueues assets for the Authorize Application screen.
*
* @since n.e.x.t
* @since 1.126.0
*/
private function enqueue_assets() {
if ( $this->is_authorize_application_screen() && $this->is_google_service() ) {
Expand All @@ -119,7 +119,7 @@ private function enqueue_assets() {
/**
* Renders custom footer for the Authorize Application screen if the service is a Google service.
*
* @since n.e.x.t
* @since 1.126.0
*/
private function render_custom_footer() {
if ( $this->is_authorize_application_screen() && $this->is_google_service() ) {
Expand Down
2 changes: 1 addition & 1 deletion includes/Core/Consent_Mode/Consent_Mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected function render_gtag_consent_snippet() {
*
* Allows these defaults to be modified, thus allowing users complete control over the consent mode parameters.
*
* @since n.e.x.t
* @since 1.126.0
*
* @param array $consent_mode_defaults Default values for consent mode.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Base class for conversion events provider.
*
* @since 1.125.0
* @since n.e.x.t Changed from interface to abstract class.
* @since 1.126.0 Changed from interface to abstract class.
* @access private
* @ignore
*/
Expand All @@ -26,15 +26,15 @@ abstract class Conversion_Events_Provider {
/**
* Plugin context.
*
* @since n.e.x.t
* @since 1.126.0
* @var Context
*/
protected $context;

/**
* Constructor.
*
* @since n.e.x.t
* @since 1.126.0
*
* @param Context $context Plugin context.
*/
Expand Down
10 changes: 5 additions & 5 deletions includes/Core/Conversion_Tracking/Conversion_Tracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Class for managing conversion tracking.
*
* @since n.e.x.t
* @since 1.126.0
* @access private
* @ignore
*/
Expand All @@ -32,15 +32,15 @@ class Conversion_Tracking {
/**
* Supported conversion event providers.
*
* @since n.e.x.t
* @since 1.126.0
* @var array
*/
public static $providers = array();

/**
* Constructor.
*
* @since n.e.x.t
* @since 1.126.0
*
* @param Context $context Plugin context.
*/
Expand All @@ -51,7 +51,7 @@ public function __construct( Context $context ) {
/**
* Registers the class functionality.
*
* @since n.e.x.t
* @since 1.126.0
*/
public function register() {
add_action(
Expand All @@ -73,7 +73,7 @@ function( Conversion_Events_Provider $active_provider ) {
/**
* Gets the instances of active conversion event providers.
*
* @since n.e.x.t
* @since 1.126.0
*
* @return array List of active Conversion_Events_Provider instances.
* @throws LogicException Thrown if an invalid conversion event provider class name is provided.
Expand Down
6 changes: 3 additions & 3 deletions includes/Modules/Ads.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function register() {
* Sets up the module's assets to register.
*
* @since 1.122.0
* @since n.e.x.t Added PAX assets.
* @since 1.126.0 Added PAX assets.
*
* @return Asset[] List of Asset objects.
*/
Expand Down Expand Up @@ -148,7 +148,7 @@ protected function setup_assets() {
/**
* Populates module data to pass to JS via _googlesitekitModulesData.
*
* @since n.e.x.t
* @since 1.126.0
*
* @param array $modules_data Inline modules data.
* @return array Inline modules data.
Expand All @@ -167,7 +167,7 @@ private function inline_modules_data( $modules_data ) {
/**
* Gets required Google OAuth scopes for the module.
*
* @since n.e.x.t
* @since 1.126.0
*
* @return array List of Google OAuth scopes.
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/Modules/Ads/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function register() {
* Gets the default value.
*
* @since 1.122.0
* @since n.e.x.t Added new settings fields for PAX.
* @since 1.126.0 Added new settings fields for PAX.
*
* @return array An array of default settings values.
*/
Expand All @@ -57,7 +57,7 @@ protected function get_default() {
* Returns keys for owned settings.
*
* @since 1.122.0
* @since n.e.x.t Added new settings fields for PAX.
* @since 1.126.0 Added new settings fields for PAX.
*
* @return array An array of keys for owned settings.
*/
Expand Down
8 changes: 4 additions & 4 deletions includes/Modules/Analytics_4.php
Original file line number Diff line number Diff line change
Expand Up @@ -2152,7 +2152,7 @@ private function filter_analytics_allow_tracking_disabled( $allowed ) {
/**
* Sets and returns available audiences.
*
* @since n.e.x.t
* @since 1.126.0
*
* @param GoogleAnalyticsAdminV1alphaAudience[] $audiences The audiences to set.
* @return array The available audiences.
Expand Down Expand Up @@ -2191,7 +2191,7 @@ function( GoogleAnalyticsAdminV1alphaAudience $audience ) {
/**
* Gets the audience slug.
*
* @since n.e.x.t
* @since 1.126.0
*
* @param GoogleAnalyticsAdminV1alphaAudience $audience The audience object.
* @return string The audience slug.
Expand Down Expand Up @@ -2232,7 +2232,7 @@ private function get_audience_slug( GoogleAnalyticsAdminV1alphaAudience $audienc
/**
* Gets the audience type based on the audience slug.
*
* @since n.e.x.t
* @since 1.126.0
*
* @param string $audience_slug The audience slug.
* @return string The audience type.
Expand All @@ -2256,7 +2256,7 @@ private function get_audience_type( $audience_slug ) {
* Checks if an audience Site Kit identifier
* (e.g. `created_by_googlesitekit:new_visitors`) exists in a nested array or object.
*
* @since n.e.x.t
* @since 1.126.0
*
* @param array|object $data The array or object to search.
* @param mixed $identifier The identifier to search for.
Expand Down
Loading

0 comments on commit 2305e61

Please sign in to comment.