Skip to content

Commit

Permalink
Bump version to 1.113.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaemnnosttv committed Nov 2, 2023
1 parent 8516367 commit 7dc8481
Show file tree
Hide file tree
Showing 24 changed files with 103 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const { useSelect, useDispatch } = Data;
/**
* Triggers on demand tour for shared key metrics if all conditions are met.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {boolean} renderChangeMetricLink If metric link meets the conditions to render.
*/
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/KeyMetrics/key-metrics-widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import { MODULES_ANALYTICS_4 } from '../../modules/analytics-4/datastore/constan
* This function is attached to the widget object that requires the custom dimensions and
* has the `requiredCustomDimensions` property.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {Function} select Data store select function.
* @param {boolean} isViewOnlyDashboard Whether the current dashboard is view only.
Expand Down
4 changes: 2 additions & 2 deletions assets/js/googlesitekit/datastore/site/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const actions = {
/**
* Sets the `setKeyMetricsSetupCompletedBy` value.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {number} keyMetricsSetupCompletedBy Positive integer if key metrics setup is completed, otherwise 0.
* @return {Object} Redux-style action.
Expand Down Expand Up @@ -773,7 +773,7 @@ export const selectors = {
/**
* Get the user ID of the user who setup Key Metrics widget if present.
*
* @since n.e.x.t
* @since 1.113.0
*
* @return {number} `ID` of the user who did initial setup of the Key Metrics widget, if setup was done, otherwise `0`.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const { useSelect, useInViewSelect } = Data;
* Utilizing the current date, the function calculates the dates
* for the previous day, two days ago, and three days ago.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {Function} select Registry select.
* @return {Object} An object containing the dates for yesterday,
Expand All @@ -76,7 +76,7 @@ export const getDates = ( select ) => {
* Returns the date range (eg. the `startDate` and `endDate`) for this widget's
* reporting options.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {Function} select Registry select.
* @return {Object} An object containing the `startDate` and `endDate` for a
Expand All @@ -102,7 +102,7 @@ export const getDateRange = ( select ) => {
* the component and the higher-order-component (`withCustomDimensions`)
* can use it.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {Function} select Registry select.
* @return {Object} The report options containing dimensions, filters,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const baseActions = {
/**
* Receives gathering data state for a custom dimension.
*
* @since n.e.x.t
* @since 1.113.0
* @private
*
* @param {string} customDimension Custom dimension slug.
Expand Down Expand Up @@ -110,7 +110,7 @@ const baseActions = {
*
* If data is available, saves the data available state to the server.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {string} customDimension Custom dimension slug.
*/
Expand Down Expand Up @@ -260,7 +260,7 @@ const baseSelectors = {
/**
* Determines whether the custom dimension is still gathering data or not.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {Object} state Data store's state.
* @param {string} customDimension Custom dimension slug.
Expand All @@ -273,7 +273,7 @@ const baseSelectors = {
/**
* Determines whether any of the provided custom dimensions are still gathering data.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {Object} state Data store's state.
* @param {Array<string>} customDimensions Array of custom dimension slugs.
Expand Down
10 changes: 5 additions & 5 deletions assets/js/modules/analytics-4/datastore/custom-dimensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const baseActions = {
/**
* Creates custom dimensions and syncs them in the settings.
*
* @since n.e.x.t
* @since 1.113.0
*/
*createCustomDimensions() {
const registry = yield Data.commonActions.getRegistry();
Expand Down Expand Up @@ -240,7 +240,7 @@ const baseSelectors = {
/**
* Checks whether the provided custom dimensions are available.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {Object} state Data store's state.
* @param {string|Array<string>} customDimensions Custom dimensions to check.
Expand Down Expand Up @@ -273,7 +273,7 @@ const baseSelectors = {
/**
* Checks whether the provided custom dimension is being created.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {Object} state Data store's state.
* @param {string} customDimension Custom dimensions to check.
Expand All @@ -288,7 +288,7 @@ const baseSelectors = {
/**
* Returns the error if encountered while creating the provided custom dimension.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {Object} state Data store's state.
* @param {string} customDimension Custom dimension to obtain creation error for.
Expand All @@ -308,7 +308,7 @@ const baseSelectors = {
/**
* Determines whether the available custom dimensions are being synced.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {Object} state Data store's state.
* @return {boolean} TRUE if the available custom dimensions are being synced, otherwise FALSE.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ const baseSelectors = {
/**
* Checks if the `streamEnabled` setting is enabled for a given web data stream within the saved settings.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {Object} state Data store's state.
* @param {string} propertyID The GA4 property ID to check.
Expand Down
4 changes: 2 additions & 2 deletions assets/js/modules/analytics-4/utils/custom-dimensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
/**
* Provides custom dimension error data to the given registry.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {Object} registry The registry to set up.
* @param {Object} options Error options.
Expand All @@ -51,7 +51,7 @@ export const provideCustomDimensionError = (
/**
* Checks whether the given error is an invalid custom dimension error.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {Object} error Error object instance.
* @return {boolean} `true` if it is an invalid custom dimension error, otherwise `false`.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/modules/analytics-4/utils/data-mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const ANALYTICS_4_DIMENSION_OPTIONS = {
/**
* Parses dimension arguments, returns dimensions as an array of strings.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param {string|Object|Array<string|Object>} dimensions A single dimension or an array of dimensions.
* @return {Array<string>} Array of dimension names.
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.111.1
* Version: 1.113.0
* Requires at least: 5.2
* Requires PHP: 5.6
* Author: Google
Expand All @@ -26,7 +26,7 @@
}

// Define most essential constants.
define( 'GOOGLESITEKIT_VERSION', '1.111.1' );
define( 'GOOGLESITEKIT_VERSION', '1.113.0' );
define( 'GOOGLESITEKIT_PLUGIN_MAIN_FILE', __FILE__ );
define( 'GOOGLESITEKIT_PHP_MINIMUM', '5.6.0' );
define( 'GOOGLESITEKIT_WP_MINIMUM', '5.2.0' );
Expand Down
4 changes: 2 additions & 2 deletions includes/Core/Key_Metrics/Key_Metrics.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Key_Metrics {
/**
* Key_Metrics_Setup_Completed_By instance.
*
* @since n.e.x.t
* @since 1.113.0
* @var Key_Metrics_Setup_Completed_By
*/
protected $key_metrics_setup_completed_by;
Expand Down Expand Up @@ -82,7 +82,7 @@ public function register() {
* Adds the status of the Key Metrics widget setup to the inline JS data.
*
* @since 1.108.0
* @since n.e.x.t Add keyMetricsSetupCompletedBy (id) instead of keyMetricsSetupCompleted boolean.
* @since 1.113.0 Add keyMetricsSetupCompletedBy (id) instead of keyMetricsSetupCompleted boolean.
*
* @param array $data Inline JS data.
* @return array Filtered $data.
Expand Down
4 changes: 2 additions & 2 deletions includes/Core/Key_Metrics/Key_Metrics_Setup_Completed_By.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* Class for handling the setup completion state of Key Metrics.
*
* @since n.e.x.t
* @since 1.113.0
* @access private
* @ignore
*/
Expand All @@ -29,7 +29,7 @@ class Key_Metrics_Setup_Completed_By extends Setting {
/**
* Gets the expected value type.
*
* @since n.e.x.t
* @since 1.113.0
*
* @return string The type name.
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/Core/Key_Metrics/REST_Key_Metrics_Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class REST_Key_Metrics_Controller {
/**
* Key_Metrics_Setup_Completed_By instance.
*
* @since n.e.x.t
* @since 1.113.0
* @var Key_Metrics_Setup_Completed_By
*/
protected $key_metrics_setup_completed_by;
Expand Down
2 changes: 1 addition & 1 deletion includes/Core/User_Input/REST_User_Input_Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class REST_User_Input_Controller {
/**
* Key_Metrics_Setup_Completed_By instance.
*
* @since n.e.x.t
* @since 1.113.0
* @var Key_Metrics_Setup_Completed_By
*/
protected $key_metrics_setup_completed_by;
Expand Down
2 changes: 1 addition & 1 deletion includes/Core/Util/Auto_Updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public static function sitekit_forced_autoupdates_status() {
/**
* Merges plugin update data in the site transient with some default plugin data.
*
* @since n.e.x.t
* @since 1.113.0
*
* @return array Site Kit plugin update data.
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/Modules/Analytics/Web_Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ protected function add_inline_ads_conversion_id_config() {
/**
* Adds an inline script to configure provided tag including configuration options.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param string $tag_id The tag ID to add config for.
* @param array $gtag_opt The gtag configuration.
Expand All @@ -214,7 +214,7 @@ protected function add_inline_config( $tag_id, $gtag_opt ) {
/**
* Gets the tag config as used in the gtag data vars.
*
* @since n.e.x.t
* @since 1.113.0
*
* @return array Tag configuration.
*/
Expand Down
10 changes: 5 additions & 5 deletions includes/Modules/Analytics_4.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ final class Analytics_4 extends Module
/**
* Custom_Dimensions_Data_Available instance.
*
* @since n.e.x.t
* @since 1.113.0
* @var Custom_Dimensions_Data_Available
*/
protected $custom_dimensions_data_available;

/**
* Constructor.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param Context $context Plugin context.
* @param Options $options Optional. Option API instance. Default is a new instance.
Expand Down Expand Up @@ -1365,7 +1365,7 @@ private function register_tag() {
/**
* Gets custom dimensions data based on available custom dimensions.
*
* @since n.e.x.t
* @since 1.113.0
*
* @return array An associated array of custom dimensions data.
*/
Expand All @@ -1382,7 +1382,7 @@ private function get_custom_dimensions_data() {
/**
* Filters the allowed post types for custom dimensions tracking.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param array $allowed_post_types The array of allowed post types.
*/
Expand Down Expand Up @@ -1664,7 +1664,7 @@ protected function get_measurement_id() {
/**
* Populates custom dimension data to pass to JS via _googlesitekitModulesData.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param array $modules_data Inline modules data.
* @return array Inline modules data.
Expand Down
6 changes: 3 additions & 3 deletions includes/Modules/Analytics_4/AMP_Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ class AMP_Tag extends Analytics_AMP_Tag implements Tag_Interface {
/**
* Custom dimensions data.
*
* @since n.e.x.t
* @since 1.113.0
* @var array
*/
private $custom_dimensions;

/**
* Sets custom dimensions data.
*
* @since n.e.x.t
* @since 1.113.0
*
* @param string $custom_dimensions Custom dimensions data.
*/
Expand Down Expand Up @@ -94,7 +94,7 @@ protected function extend_gtag_opt( $opt ) {
/**
* Gets the tag config as used in the gtag data vars.
*
* @since n.e.x.t
* @since 1.113.0
*
* @return array Tag configuration.
*/
Expand Down
Loading

0 comments on commit 7dc8481

Please sign in to comment.