Plugin Directory

Changeset 3141863


Ignore:
Timestamp:
08/26/2024 06:29:34 PM (16 months ago)
Author:
google
Message:

Update to version 1.134.0 from GitHub

Location:
google-site-kit
Files:
88 added
78 deleted
30 edited
1 copied

Legend:

Unmodified
Added
Removed
  • google-site-kit/assets/banner-1544x500.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • google-site-kit/assets/banner-772x250.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • google-site-kit/assets/icon-128x128.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • google-site-kit/assets/icon-256x256.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • google-site-kit/tags/1.134.0/dist/manifest.php

    r3134468 r3141863  
    1919    'analytics-advanced-tracking'                          => array( "analytics-advanced-tracking-ea84b2c367b69f5c094b.js", null ),
    2020    'googlesitekit-i18n'                                   => array( "googlesitekit-i18n-33cdd2dee5d1d1f4fb34.js", null ),
    21     'googlesitekit-admin-css'                              => array( "googlesitekit-admin-css-bc031663a32c4ef030f4.min.css", null ),
     21    'googlesitekit-admin-css'                              => array( "googlesitekit-admin-css-ba6e9e2a0bcfb5f1a637.min.css", null ),
    2222    'googlesitekit-adminbar-css'                           => array( "googlesitekit-adminbar-css-6db776544b37175be17f.min.css", null ),
    2323    'googlesitekit-authorize-application-css'              => array( "googlesitekit-authorize-application-css-ce25e97404abc5a02921.min.css", null ),
    2424    'googlesitekit-wp-dashboard-css'                       => array( "googlesitekit-wp-dashboard-css-d1180e1ae01fd577a4c5.min.css", null ),
    25     'googlesitekit-vendor'                                 => array( "googlesitekit-vendor-b75d9e02c20c461ba99f.js", null ),
    26     'googlesitekit-runtime'                                => array( "runtime-7f48d3441e91aaa6a78a.js", null ),
    27     'googlesitekit-activation'                             => array( "googlesitekit-activation-0c7e9b1290a94d21745f.js", null ),
    28     'googlesitekit-ad-blocking-recovery'                   => array( "googlesitekit-ad-blocking-recovery-cd6f1909c2c04fc87899.js", null ),
    29     'googlesitekit-adminbar'                               => array( "googlesitekit-adminbar-3ccd08ef680aaf5cc4f6.js", null ),
    30     'googlesitekit-api'                                    => array( "googlesitekit-api-7e1bb255cce83f5d9855.js", null ),
    31     'googlesitekit-components'                             => array( array( "googlesitekit-components-gm2-988a66f4b085be52df86.js", null ), array( "googlesitekit-components-gm3-614b4e5847946845a5d0.js", null ) ),
    32     'googlesitekit-data'                                   => array( "googlesitekit-data-0714c874c7c281b78a0b.js", null ),
    33     'googlesitekit-datastore-forms'                        => array( "googlesitekit-datastore-forms-0be8fc188ebe5b2c0eb8.js", null ),
    34     'googlesitekit-datastore-location'                     => array( "googlesitekit-datastore-location-e6f42a6eaa7a6689b7d6.js", null ),
    35     'googlesitekit-datastore-site'                         => array( "googlesitekit-datastore-site-daa1644bf0076c681a73.js", null ),
    36     'googlesitekit-datastore-ui'                           => array( "googlesitekit-datastore-ui-afbefc00f2d3816055cb.js", null ),
    37     'googlesitekit-datastore-user'                         => array( "googlesitekit-datastore-user-42a4379a26697f935197.js", null ),
    38     'googlesitekit-entity-dashboard'                       => array( "googlesitekit-entity-dashboard-b10d5e6f2cabf8130b3c.js", null ),
    39     'googlesitekit-main-dashboard'                         => array( "googlesitekit-main-dashboard-2a00c0aa1e236d8aa64a.js", null ),
    40     'googlesitekit-modules'                                => array( "googlesitekit-modules-02b52d81a6154abd3d96.js", null ),
    41     'googlesitekit-modules-ads'                            => array( "googlesitekit-modules-ads-75c50cba4d25da4f7ce4.js", null ),
    42     'googlesitekit-modules-adsense'                        => array( "googlesitekit-modules-adsense-1f97b03c1c73d0dccdc3.js", null ),
    43     'googlesitekit-modules-analytics-4'                    => array( "googlesitekit-modules-analytics-4-01c5088b7df3a67f114f.js", null ),
    44     'googlesitekit-modules-pagespeed-insights'             => array( "googlesitekit-modules-pagespeed-insights-80d7bd90c03a440e8300.js", null ),
    45     'googlesitekit-modules-reader-revenue-manager'         => array( "googlesitekit-modules-reader-revenue-manager-d12328114964e3665586.js", null ),
    46     'googlesitekit-modules-search-console'                 => array( "googlesitekit-modules-search-console-bfa7d6411fa9a12c8446.js", null ),
    47     'googlesitekit-modules-tagmanager'                     => array( "googlesitekit-modules-tagmanager-9c40b1462a408587a7e2.js", null ),
    48     'googlesitekit-notifications'                          => array( "googlesitekit-notifications-d288ca3bb9c480a3f281.js", null ),
    49     'googlesitekit-polyfills'                              => array( "googlesitekit-polyfills-5fb6822c36a3aa4268a5.js", null ),
    50     'googlesitekit-settings'                               => array( "googlesitekit-settings-17885501c42bb08460ab.js", null ),
    51     'googlesitekit-splash'                                 => array( "googlesitekit-splash-a1ec1f77b209a263948a.js", null ),
    52     'googlesitekit-user-input'                             => array( "googlesitekit-user-input-091aa83c4a6401a2095e.js", null ),
    53     'googlesitekit-widgets'                                => array( "googlesitekit-widgets-550900a532f140f7e269.js", null ),
    54     'googlesitekit-wp-dashboard'                           => array( "googlesitekit-wp-dashboard-3e2ed4a459c053fad776.js", null ),
     25    'googlesitekit-vendor'                                 => array( "googlesitekit-vendor-625942ce3e249bc6cbbb.js", null ),
     26    'googlesitekit-runtime'                                => array( "runtime-f562582a775dd979d8cc.js", null ),
     27    'googlesitekit-activation'                             => array( "googlesitekit-activation-0156e9e9183768884a51.js", null ),
     28    'googlesitekit-ad-blocking-recovery'                   => array( "googlesitekit-ad-blocking-recovery-5ec12229d17f3e26e18d.js", null ),
     29    'googlesitekit-adminbar'                               => array( "googlesitekit-adminbar-26b6ac7482380c6f0503.js", null ),
     30    'googlesitekit-api'                                    => array( "googlesitekit-api-ab52eed0ee6a44be38b3.js", null ),
     31    'googlesitekit-components'                             => array( array( "googlesitekit-components-gm2-0f8ff214aaee64f1e091.js", null ), array( "googlesitekit-components-gm3-d2883b93374979796649.js", null ) ),
     32    'googlesitekit-data'                                   => array( "googlesitekit-data-def4f4a434351223837f.js", null ),
     33    'googlesitekit-datastore-forms'                        => array( "googlesitekit-datastore-forms-c9b81525d9016cbbbef6.js", null ),
     34    'googlesitekit-datastore-location'                     => array( "googlesitekit-datastore-location-03c93cc12544ccbbdf50.js", null ),
     35    'googlesitekit-datastore-site'                         => array( "googlesitekit-datastore-site-4e71ab7c3bb633e19a32.js", null ),
     36    'googlesitekit-datastore-ui'                           => array( "googlesitekit-datastore-ui-99ab3cc36ca122895f43.js", null ),
     37    'googlesitekit-datastore-user'                         => array( "googlesitekit-datastore-user-addf75df8db655765af0.js", null ),
     38    'googlesitekit-entity-dashboard'                       => array( "googlesitekit-entity-dashboard-bf6ba3f0b9c923f11709.js", null ),
     39    'googlesitekit-main-dashboard'                         => array( "googlesitekit-main-dashboard-db649d3c3b6d9027a824.js", null ),
     40    'googlesitekit-modules'                                => array( "googlesitekit-modules-dc6e37a871796540fbac.js", null ),
     41    'googlesitekit-modules-ads'                            => array( "googlesitekit-modules-ads-8a01949acbaf5f9513e3.js", null ),
     42    'googlesitekit-modules-adsense'                        => array( "googlesitekit-modules-adsense-d4e969b135b277b3f61b.js", null ),
     43    'googlesitekit-modules-analytics-4'                    => array( "googlesitekit-modules-analytics-4-00f0bb07e4bd025aa07f.js", null ),
     44    'googlesitekit-modules-pagespeed-insights'             => array( "googlesitekit-modules-pagespeed-insights-e5394ed3d712ca668967.js", null ),
     45    'googlesitekit-modules-reader-revenue-manager'         => array( "googlesitekit-modules-reader-revenue-manager-3ac3cc164752a4e67945.js", null ),
     46    'googlesitekit-modules-search-console'                 => array( "googlesitekit-modules-search-console-54fe3c8e34c8e7b2cdd7.js", null ),
     47    'googlesitekit-modules-tagmanager'                     => array( "googlesitekit-modules-tagmanager-36854685cfc078aa9ea4.js", null ),
     48    'googlesitekit-notifications'                          => array( "googlesitekit-notifications-e5815fba60fe1cb1e172.js", null ),
     49    'googlesitekit-polyfills'                              => array( "googlesitekit-polyfills-c5dfeeeb4566ab655187.js", null ),
     50    'googlesitekit-settings'                               => array( "googlesitekit-settings-c5ed8a54309d018a6b77.js", null ),
     51    'googlesitekit-splash'                                 => array( "googlesitekit-splash-76b922a28fcdee85f514.js", null ),
     52    'googlesitekit-user-input'                             => array( "googlesitekit-user-input-1c36e0eb8c8ea1c166b1.js", null ),
     53    'googlesitekit-widgets'                                => array( "googlesitekit-widgets-c4b49ec1e2ef6587bc2d.js", null ),
     54    'googlesitekit-wp-dashboard'                           => array( "googlesitekit-wp-dashboard-bfa6aa6193cf3a1caccc.js", null ),
    5555);
  • google-site-kit/tags/1.134.0/google-site-kit.php

    r3134468 r3141863  
    1212 * Plugin URI:        https://sitekit.withgoogle.com
    1313 * 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.
    14  * Version:           1.133.0
     14 * Version:           1.134.0
    1515 * Requires at least: 5.2
    1616 * Requires PHP:      7.4
     
    2727
    2828// Define most essential constants.
    29 define( 'GOOGLESITEKIT_VERSION', '1.133.0' );
     29define( 'GOOGLESITEKIT_VERSION', '1.134.0' );
    3030define( 'GOOGLESITEKIT_PLUGIN_MAIN_FILE', __FILE__ );
    3131define( 'GOOGLESITEKIT_PHP_MINIMUM', '7.4.0' );
  • google-site-kit/tags/1.134.0/includes/Core/Authentication/Authentication.php

    r3118692 r3141863  
    382382        add_action(
    383383            'heartbeat_tick',
    384             function () {
    385                 $this->maybe_refresh_token_for_screen( $this->context->input()->filter( INPUT_POST, 'screen_id' ) );
    386             }
     384            function ( $response, $screen_id ) {
     385                $this->maybe_refresh_token_for_screen( $screen_id );
     386            },
     387            10,
     388            2
    387389        );
    388390
  • google-site-kit/tags/1.134.0/includes/Core/Remote_Features/Remote_Features.php

    r3134468 r3141863  
    4343     */
    4444    protected function get_default() {
    45         return array();
     45        return array(
     46            'last_updated_at' => 0,
     47        );
     48    }
     49
     50    /**
     51     * Includes the current timestamp to the setting and updates it.
     52     *
     53     * @since 1.134.0
     54     *
     55     * @param array $features features array.
     56     */
     57    public function update( $features ) {
     58        $features['last_updated_at'] = time();
     59
     60        return $this->set( $features );
    4661    }
    4762
     
    6075
    6176            foreach ( $value as $feature => $meta ) {
    62                 $new_value[ $feature ] = array( 'enabled' => ! empty( $meta['enabled'] ) );
     77                if ( 'last_updated_at' === $feature ) {
     78                    $new_value[ $feature ] = is_int( $meta ) ? $meta : 0;
     79                } else {
     80                    $new_value[ $feature ] = array( 'enabled' => ! empty( $meta['enabled'] ) );
     81                }
    6382            }
    6483
  • google-site-kit/tags/1.134.0/includes/Core/Remote_Features/Remote_Features_Provider.php

    r3134468 r3141863  
    2727 */
    2828class Remote_Features_Provider {
     29
    2930    /**
    3031     * Credentials instance.
     
    6364
    6465    /**
     66     * Remote_Features_Fallback instance.
     67     *
     68     * @var Remote_Features_Fallback
     69     */
     70    private Remote_Features_Fallback $fallback;
     71
     72    /**
    6573     * Constructor.
    6674     *
     
    8189        );
    8290        $this->cron        = new Remote_Features_Cron( array( $this->syncer, 'pull_remote_features' ) );
     91        $this->fallback    = new Remote_Features_Fallback( $this->setting, $this->syncer );
    8392    }
    8493
     
    94103
    95104        add_action( 'admin_init', fn () => $this->on_admin_init() );
     105        add_action(
     106            'heartbeat_tick',
     107            fn ( $response, $screen_id ) => $this->on_heartbeat_tick( $screen_id ),
     108            10,
     109            2
     110        );
     111    }
     112
     113    /**
     114     * Handles the heartbeat AJAX callback.
     115     *
     116     * @param string $screen_id The screen ID.
     117     */
     118    protected function on_heartbeat_tick( $screen_id ) {
     119        if ( 'toplevel_page_googlesitekit-dashboard' !== $screen_id ) {
     120            return;
     121        }
     122
     123        $this->fallback->remote_features_sync_fallback();
    96124    }
    97125
  • google-site-kit/tags/1.134.0/includes/Core/Remote_Features/Remote_Features_Syncer.php

    r3134468 r3141863  
    7878
    7979        if ( ! is_wp_error( $features ) && is_array( $features ) ) {
    80             $this->remote_features->set( $features );
     80            $this->remote_features->update( $features );
    8181        }
    8282    }
  • google-site-kit/tags/1.134.0/includes/Core/Tracking/Tracking.php

    r2752206 r3141863  
    2828    use Method_Proxy_Trait;
    2929
    30     const TRACKING_ID = 'UA-130569087-3';
     30    const TRACKING_ID = 'G-EQDN3BWDSD';
    3131
    3232    /**
  • google-site-kit/tags/1.134.0/includes/Modules/Analytics_4.php

    r3118692 r3141863  
    5858use Google\Site_Kit\Modules\Analytics_4\Advanced_Tracking;
    5959use Google\Site_Kit\Modules\Analytics_4\AMP_Tag;
    60 use Google\Site_Kit\Modules\Analytics_4\Audience_Settings;
    6160use Google\Site_Kit\Modules\Analytics_4\Custom_Dimensions_Data_Available;
    6261use Google\Site_Kit\Modules\Analytics_4\Synchronize_Property;
     
    9190use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface;
    9291use Google\Site_Kit\Core\REST_API\REST_Routes;
     92use Google\Site_Kit\Core\User\Audience_Settings;
    9393use stdClass;
    9494use WP_Error;
     
    660660                'request_scopes_message' => __( 'You’ll need to grant Site Kit permission to create new audiences for your Analytics property on your behalf.', 'google-site-kit' ),
    661661            );
    662             $datapoints['GET:audience-settings']                     = array(
    663                 'service' => '',
    664             );
    665             $datapoints['POST:audience-settings']                    = array(
    666                 'service' => '',
    667             );
    668662            $datapoints['POST:save-resource-data-availability-date'] = array(
    669663                'service' => '',
     
    10971091                        $post_body
    10981092                    );
    1099             case 'GET:audience-settings':
    1100                 return function () {
    1101                     return $this->audience_settings->get();
    1102                 };
    1103             case 'POST:audience-settings':
    1104                 $settings = $data['settings'];
    1105                 if ( ! isset( $settings['configuredAudiences'] ) ) {
    1106                     throw new Missing_Required_Param_Exception( 'configuredAudiences' );
    1107                 }
    1108 
    1109                 if ( ! is_array( $settings['configuredAudiences'] ) ) {
    1110                     throw new Invalid_Param_Exception( 'configuredAudiences' );
    1111                 }
    1112 
    1113                 if ( ! isset( $settings['isAudienceSegmentationWidgetHidden'] ) ) {
    1114                     throw new Missing_Required_Param_Exception( 'isAudienceSegmentationWidgetHidden' );
    1115                 }
    1116 
    1117                 if ( ! is_bool( $settings['isAudienceSegmentationWidgetHidden'] ) ) {
    1118                     throw new Invalid_Param_Exception( 'isAudienceSegmentationWidgetHidden' );
    1119                 }
    1120 
    1121                 $this->audience_settings->merge( $data['settings'] );
    1122 
    1123                 return function () {
    1124                     return $this->audience_settings->get();
    1125                 };
    11261093            case 'POST:create-account-ticket':
    11271094                if ( empty( $data['displayName'] ) ) {
  • google-site-kit/tags/1.134.0/includes/Modules/Reader_Revenue_Manager.php

    r3127664 r3141863  
    3939use Google\Site_Kit\Modules\Search_Console\Settings as Search_Console_Settings;
    4040use Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle as Google_Service_SubscribewithGoogle;
     41use WP_Error;
    4142
    4243/**
     
    143144     *
    144145     * @since 1.131.0
     146     * @since 1.134.0 Checks if the user's publications includes the saved publication.
    145147     *
    146148     * @return boolean|WP_Error
     
    155157
    156158        try {
    157             $subscribewithgoogle->publications->listPublications(
    158                 array(
    159                     'pageSize' => 1,
    160                 )
    161             );
     159            $response = $subscribewithgoogle->publications->listPublications();
    162160        } catch ( Exception $e ) {
    163161            if ( $e->getCode() === 403 ) {
     
    167165        }
    168166
    169         return true;
     167        $publications   = array_values( $response->getPublications() );
     168        $settings       = $this->get_settings()->get();
     169        $publication_id = $settings['publicationID'];
     170
     171        // Check if the $publications array contains a publication with the saved
     172        // publication ID.
     173        foreach ( $publications as $publication ) {
     174            if (
     175                isset( $publication['publicationId'] ) &&
     176                $publication_id === $publication['publicationId']
     177            ) {
     178                return true;
     179            }
     180        }
     181
     182        return false;
    170183    }
    171184
     
    241254            'description' => __( 'Reader Revenue Manager helps publishers grow, retain, and engage their audiences, creating new revenue opportunities', 'google-site-kit' ),
    242255            'order'       => 5,
    243             'homepage'    => __( 'https://readerrevenue.withgoogle.com/', 'google-site-kit' ),
     256            'homepage'    => 'https://publishercenter.google.com',
    244257        );
    245258    }
  • google-site-kit/tags/1.134.0/includes/Modules/Reader_Revenue_Manager/Web_Tag.php

    r3127664 r3141863  
    8383        // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion
    8484        wp_register_script( 'google_swgjs', 'https://news.google.com/swg/js/v1/swg-basic.js', array(), null, true );
    85         wp_add_inline_script( 'google_swgjs', $swg_inline_script );
     85        wp_script_add_data( 'google_swgjs', 'strategy', 'async' );
     86        wp_add_inline_script( 'google_swgjs', $swg_inline_script, 'before' );
    8687
    8788        wp_enqueue_script( 'google_swgjs' );
  • google-site-kit/tags/1.134.0/includes/Plugin.php

    r3134468 r3141863  
    167167
    168168                $user_input->register();
     169
     170                $user = new Core\User\User( $user_options );
     171                $user->register();
    169172
    170173                $modules = new Core\Modules\Modules( $this->context, $options, $user_options, $authentication, $assets );
  • google-site-kit/tags/1.134.0/includes/vendor/composer/autoload_classmap.php

    r3134468 r3141863  
    147147    'Google\\Site_Kit\\Core\\Remote_Features\\Remote_Features_Activation' => $baseDir . '/Core/Remote_Features/Remote_Features_Activation.php',
    148148    'Google\\Site_Kit\\Core\\Remote_Features\\Remote_Features_Cron' => $baseDir . '/Core/Remote_Features/Remote_Features_Cron.php',
     149    'Google\\Site_Kit\\Core\\Remote_Features\\Remote_Features_Fallback' => $baseDir . '/Core/Remote_Features/Remote_Features_Fallback.php',
    149150    'Google\\Site_Kit\\Core\\Remote_Features\\Remote_Features_Provider' => $baseDir . '/Core/Remote_Features/Remote_Features_Provider.php',
    150151    'Google\\Site_Kit\\Core\\Remote_Features\\Remote_Features_Syncer' => $baseDir . '/Core/Remote_Features/Remote_Features_Syncer.php',
     
    189190    'Google\\Site_Kit\\Core\\Tracking\\Tracking' => $baseDir . '/Core/Tracking/Tracking.php',
    190191    'Google\\Site_Kit\\Core\\Tracking\\Tracking_Consent' => $baseDir . '/Core/Tracking/Tracking_Consent.php',
     192    'Google\\Site_Kit\\Core\\User\\Audience_Segmentation' => $baseDir . '/Core/User/Audience_Segmentation.php',
     193    'Google\\Site_Kit\\Core\\User\\Audience_Settings' => $baseDir . '/Core/User/Audience_Settings.php',
     194    'Google\\Site_Kit\\Core\\User\\REST_Audience_Settings_Controller' => $baseDir . '/Core/User/REST_Audience_Settings_Controller.php',
     195    'Google\\Site_Kit\\Core\\User\\User' => $baseDir . '/Core/User/User.php',
    191196    'Google\\Site_Kit\\Core\\User_Input\\REST_User_Input_Controller' => $baseDir . '/Core/User_Input/REST_User_Input_Controller.php',
    192197    'Google\\Site_Kit\\Core\\User_Input\\Site_Specific_Answers' => $baseDir . '/Core/User_Input/Site_Specific_Answers.php',
     
    258263    'Google\\Site_Kit\\Modules\\Analytics_4\\Advanced_Tracking\\Event_List_Registry' => $baseDir . '/Modules/Analytics_4/Advanced_Tracking/Event_List_Registry.php',
    259264    'Google\\Site_Kit\\Modules\\Analytics_4\\Advanced_Tracking\\Script_Injector' => $baseDir . '/Modules/Analytics_4/Advanced_Tracking/Script_Injector.php',
    260     'Google\\Site_Kit\\Modules\\Analytics_4\\Audience_Settings' => $baseDir . '/Modules/Analytics_4/Audience_Settings.php',
    261265    'Google\\Site_Kit\\Modules\\Analytics_4\\Custom_Dimensions_Data_Available' => $baseDir . '/Modules/Analytics_4/Custom_Dimensions_Data_Available.php',
    262266    'Google\\Site_Kit\\Modules\\Analytics_4\\GoogleAnalyticsAdmin\\AccountProvisioningService' => $baseDir . '/Modules/Analytics_4/GoogleAnalyticsAdmin/AccountProvisioningService.php',
  • google-site-kit/tags/1.134.0/readme.txt

    r3134468 r3141863  
    55Tested up to:      6.6
    66Requires PHP:      7.4
    7 Stable tag:        1.133.0
     7Stable tag:        1.134.0
    88License:           Apache License 2.0
    99License URI:       https://www.apache.org/licenses/LICENSE-2.0
     
    110110== Changelog ==
    111111
    112 = 1.133.0 =
     112= 1.134.0 =
    113113
    114114**Enhanced**
    115115
    116 * Add callout buttons. See [#9063](https://github.com/google/site-kit-wp/issues/9063).
    117 * Implement the Audience Creation Notice as a component which is visible in Storybook. See [#8986](https://github.com/google/site-kit-wp/issues/8986).
    118 * Add datastore infrastructure to get queued notifications. See [#8975](https://github.com/google/site-kit-wp/issues/8975).
    119 * Update the audience segmentation notice that is displayed in selection panel to not disappear until two audiences are selected. See [#8909](https://github.com/google/site-kit-wp/issues/8909).
    120 * Ensure the “temporarily hidden” state of an audience with zero data is cleared when the audience is removed from the selection. See [#8877](https://github.com/google/site-kit-wp/issues/8877).
    121 * Add Reader Revenue Manager publication approved overlay notification. See [#8843](https://github.com/google/site-kit-wp/issues/8843).
    122 * Implement the settings view screen for the Reader Revenue Manager module. See [#8842](https://github.com/google/site-kit-wp/issues/8842).
    123 * Implement the settings edit view for the Reader Revenue Manager module. See [#8841](https://github.com/google/site-kit-wp/issues/8841).
    124 * Add periodic automatic refresh behaviour in the Reader Revenue Manager setup form. See [#8839](https://github.com/google/site-kit-wp/issues/8839).
    125 * Add the `PublicationCreate` component that encapsulates the publication creation flow for the Reader Revenue Manager module, presented in Storybook. See [#8836](https://github.com/google/site-kit-wp/issues/8836).
    126 * Introduce Reader Revenue Manager setup flow. See [#8800](https://github.com/google/site-kit-wp/issues/8800).
    127 * Add a mechanism to synchronize the onboarding state of a publication once every hour in the Reader Revenue Manager module. See [#8797](https://github.com/google/site-kit-wp/issues/8797).
    128 * Update Consent Mode to always include Switzerland in its list of relevant areas. See [#8720](https://github.com/google/site-kit-wp/issues/8720).
    129 * Ensure remote features are loaded as early as possible during plugin initialization. See [#8341](https://github.com/google/site-kit-wp/issues/8341).
    130 * Add a notice to the Audience Selection Panel that allows creation of the "New visitors" and "Returning visitors" audiences. See [#8164](https://github.com/google/site-kit-wp/issues/8164).
    131 * Provide the ability to create a required custom dimension in the "Top content" metric section if it's missing. See [#8153](https://github.com/google/site-kit-wp/issues/8153).
     116* Refactor the ZeroDataNotification to use the new lighter Notification component. See [#9184](https://github.com/google/site-kit-wp/issues/9184).
     117* Modify the Reader Revenue Manager's `resetPublications` action to clear publications before invalidating the `getPublications` resolver. See [#9176](https://github.com/google/site-kit-wp/issues/9176).
     118* Improve the Reader Revenue Manager settings edit screen by handling cases where the configured publication is unavailable, or the user lacks access by displaying appropriate notices. See [#9151](https://github.com/google/site-kit-wp/issues/9151).
     119* Improve the check for whether a user has access to the Reader Revenue Manager module, requiring the user to have visibility of the connected publication ID. See [#9150](https://github.com/google/site-kit-wp/issues/9150).
     120* Refactor the GatheringDataNotification to use a newly refactored version of the BannerNotification component. See [#9071](https://github.com/google/site-kit-wp/issues/9071).
     121* Add the `async` attribute to the Subscribe with Google script tag. See [#9055](https://github.com/google/site-kit-wp/issues/9055).
     122* Refactor the ZeroDataNotification to use the new Notifications approach. See [#8977](https://github.com/google/site-kit-wp/issues/8977).
     123* Update notifications to use new notifications infrastructure. See [#8976](https://github.com/google/site-kit-wp/issues/8976).
     124* Improve error handling for widgets. See [#8939](https://github.com/google/site-kit-wp/issues/8939).
     125* Handle errors when retrieving the user count to show in the Audience Selection Panel for audiences which are in the partial data state. See [#8923](https://github.com/google/site-kit-wp/issues/8923).
     126* Adjust the CTA and "New" badge positions for widget areas on mobile and tablet viewports. See [#8863](https://github.com/google/site-kit-wp/issues/8863).
     127* Add Analytics tracking events for the Reader Revenue Manager module. See [#8847](https://github.com/google/site-kit-wp/issues/8847).
     128* Add the Reader Revenue Manager module setup CTA banner notification to the Site Kit main dashboard, visible only on HTTPS-enabled sites. See [#8846](https://github.com/google/site-kit-wp/issues/8846).
     129* Add the Reader Revenue Manager module success setup banner notification. See [#8840](https://github.com/google/site-kit-wp/issues/8840).
     130* Detached audience segmentation settings from the Analytics module. See [#8810](https://github.com/google/site-kit-wp/issues/8810).
     131* Implement the placeholder tile variants for the Audience Tile that appear when only one audience is selected. See [#8146](https://github.com/google/site-kit-wp/issues/8146).
     132* Add fallback for remote feature activation. See [#7531](https://github.com/google/site-kit-wp/issues/7531).
    132133
    133134**Changed**
    134135
    135 * Implement a shared SubtleNotification component and update existing notifications to use it. See [#8725](https://github.com/google/site-kit-wp/issues/8725).
     136* Remove UA Analytics tracking from Site Kit admin. See [#9042](https://github.com/google/site-kit-wp/issues/9042).
    136137
    137138**Fixed**
    138139
    139 * Fix the react dashboard error caused by the New badge component for key metric widgets. Props Towerss. See [#9094](https://github.com/google/site-kit-wp/issues/9094).
    140 * Fix full-stop issue in the survey pop-up footer. See [#9075](https://github.com/google/site-kit-wp/issues/9075).
    141 * Fix the broken layout issue in the audience segmentation widget on mobile and tablet devices. See [#8930](https://github.com/google/site-kit-wp/issues/8930).
    142 * Update segmentation tiles to properly display non-empty data. See [#8921](https://github.com/google/site-kit-wp/issues/8921).
    143 * Fix bug that could cause chart legend values to overflow on mobile screen sizes. See [#7565](https://github.com/google/site-kit-wp/issues/7565).
    144 * Update dashboard sharing to restore sharing capabilities for modules whose owner lost sharing capabilities. See [#5354](https://github.com/google/site-kit-wp/issues/5354).
     140* Update the "See full details" link in Reader Revenue Manager. See [#9144](https://github.com/google/site-kit-wp/issues/9144).
     141* Ensure that a Selection Panel without any available items doesn't display the available items title. See [#9109](https://github.com/google/site-kit-wp/issues/9109).
     142* Fix bug where selected audiences which have been archived would remain visible in the loading state. See [#9095](https://github.com/google/site-kit-wp/issues/9095).
    145143
    146144[See changelog for all versions](https://raw.githubusercontent.com/google/site-kit-wp/main/changelog.txt).
  • google-site-kit/trunk/dist/manifest.php

    r3134468 r3141863  
    1919    'analytics-advanced-tracking'                          => array( "analytics-advanced-tracking-ea84b2c367b69f5c094b.js", null ),
    2020    'googlesitekit-i18n'                                   => array( "googlesitekit-i18n-33cdd2dee5d1d1f4fb34.js", null ),
    21     'googlesitekit-admin-css'                              => array( "googlesitekit-admin-css-bc031663a32c4ef030f4.min.css", null ),
     21    'googlesitekit-admin-css'                              => array( "googlesitekit-admin-css-ba6e9e2a0bcfb5f1a637.min.css", null ),
    2222    'googlesitekit-adminbar-css'                           => array( "googlesitekit-adminbar-css-6db776544b37175be17f.min.css", null ),
    2323    'googlesitekit-authorize-application-css'              => array( "googlesitekit-authorize-application-css-ce25e97404abc5a02921.min.css", null ),
    2424    'googlesitekit-wp-dashboard-css'                       => array( "googlesitekit-wp-dashboard-css-d1180e1ae01fd577a4c5.min.css", null ),
    25     'googlesitekit-vendor'                                 => array( "googlesitekit-vendor-b75d9e02c20c461ba99f.js", null ),
    26     'googlesitekit-runtime'                                => array( "runtime-7f48d3441e91aaa6a78a.js", null ),
    27     'googlesitekit-activation'                             => array( "googlesitekit-activation-0c7e9b1290a94d21745f.js", null ),
    28     'googlesitekit-ad-blocking-recovery'                   => array( "googlesitekit-ad-blocking-recovery-cd6f1909c2c04fc87899.js", null ),
    29     'googlesitekit-adminbar'                               => array( "googlesitekit-adminbar-3ccd08ef680aaf5cc4f6.js", null ),
    30     'googlesitekit-api'                                    => array( "googlesitekit-api-7e1bb255cce83f5d9855.js", null ),
    31     'googlesitekit-components'                             => array( array( "googlesitekit-components-gm2-988a66f4b085be52df86.js", null ), array( "googlesitekit-components-gm3-614b4e5847946845a5d0.js", null ) ),
    32     'googlesitekit-data'                                   => array( "googlesitekit-data-0714c874c7c281b78a0b.js", null ),
    33     'googlesitekit-datastore-forms'                        => array( "googlesitekit-datastore-forms-0be8fc188ebe5b2c0eb8.js", null ),
    34     'googlesitekit-datastore-location'                     => array( "googlesitekit-datastore-location-e6f42a6eaa7a6689b7d6.js", null ),
    35     'googlesitekit-datastore-site'                         => array( "googlesitekit-datastore-site-daa1644bf0076c681a73.js", null ),
    36     'googlesitekit-datastore-ui'                           => array( "googlesitekit-datastore-ui-afbefc00f2d3816055cb.js", null ),
    37     'googlesitekit-datastore-user'                         => array( "googlesitekit-datastore-user-42a4379a26697f935197.js", null ),
    38     'googlesitekit-entity-dashboard'                       => array( "googlesitekit-entity-dashboard-b10d5e6f2cabf8130b3c.js", null ),
    39     'googlesitekit-main-dashboard'                         => array( "googlesitekit-main-dashboard-2a00c0aa1e236d8aa64a.js", null ),
    40     'googlesitekit-modules'                                => array( "googlesitekit-modules-02b52d81a6154abd3d96.js", null ),
    41     'googlesitekit-modules-ads'                            => array( "googlesitekit-modules-ads-75c50cba4d25da4f7ce4.js", null ),
    42     'googlesitekit-modules-adsense'                        => array( "googlesitekit-modules-adsense-1f97b03c1c73d0dccdc3.js", null ),
    43     'googlesitekit-modules-analytics-4'                    => array( "googlesitekit-modules-analytics-4-01c5088b7df3a67f114f.js", null ),
    44     'googlesitekit-modules-pagespeed-insights'             => array( "googlesitekit-modules-pagespeed-insights-80d7bd90c03a440e8300.js", null ),
    45     'googlesitekit-modules-reader-revenue-manager'         => array( "googlesitekit-modules-reader-revenue-manager-d12328114964e3665586.js", null ),
    46     'googlesitekit-modules-search-console'                 => array( "googlesitekit-modules-search-console-bfa7d6411fa9a12c8446.js", null ),
    47     'googlesitekit-modules-tagmanager'                     => array( "googlesitekit-modules-tagmanager-9c40b1462a408587a7e2.js", null ),
    48     'googlesitekit-notifications'                          => array( "googlesitekit-notifications-d288ca3bb9c480a3f281.js", null ),
    49     'googlesitekit-polyfills'                              => array( "googlesitekit-polyfills-5fb6822c36a3aa4268a5.js", null ),
    50     'googlesitekit-settings'                               => array( "googlesitekit-settings-17885501c42bb08460ab.js", null ),
    51     'googlesitekit-splash'                                 => array( "googlesitekit-splash-a1ec1f77b209a263948a.js", null ),
    52     'googlesitekit-user-input'                             => array( "googlesitekit-user-input-091aa83c4a6401a2095e.js", null ),
    53     'googlesitekit-widgets'                                => array( "googlesitekit-widgets-550900a532f140f7e269.js", null ),
    54     'googlesitekit-wp-dashboard'                           => array( "googlesitekit-wp-dashboard-3e2ed4a459c053fad776.js", null ),
     25    'googlesitekit-vendor'                                 => array( "googlesitekit-vendor-625942ce3e249bc6cbbb.js", null ),
     26    'googlesitekit-runtime'                                => array( "runtime-f562582a775dd979d8cc.js", null ),
     27    'googlesitekit-activation'                             => array( "googlesitekit-activation-0156e9e9183768884a51.js", null ),
     28    'googlesitekit-ad-blocking-recovery'                   => array( "googlesitekit-ad-blocking-recovery-5ec12229d17f3e26e18d.js", null ),
     29    'googlesitekit-adminbar'                               => array( "googlesitekit-adminbar-26b6ac7482380c6f0503.js", null ),
     30    'googlesitekit-api'                                    => array( "googlesitekit-api-ab52eed0ee6a44be38b3.js", null ),
     31    'googlesitekit-components'                             => array( array( "googlesitekit-components-gm2-0f8ff214aaee64f1e091.js", null ), array( "googlesitekit-components-gm3-d2883b93374979796649.js", null ) ),
     32    'googlesitekit-data'                                   => array( "googlesitekit-data-def4f4a434351223837f.js", null ),
     33    'googlesitekit-datastore-forms'                        => array( "googlesitekit-datastore-forms-c9b81525d9016cbbbef6.js", null ),
     34    'googlesitekit-datastore-location'                     => array( "googlesitekit-datastore-location-03c93cc12544ccbbdf50.js", null ),
     35    'googlesitekit-datastore-site'                         => array( "googlesitekit-datastore-site-4e71ab7c3bb633e19a32.js", null ),
     36    'googlesitekit-datastore-ui'                           => array( "googlesitekit-datastore-ui-99ab3cc36ca122895f43.js", null ),
     37    'googlesitekit-datastore-user'                         => array( "googlesitekit-datastore-user-addf75df8db655765af0.js", null ),
     38    'googlesitekit-entity-dashboard'                       => array( "googlesitekit-entity-dashboard-bf6ba3f0b9c923f11709.js", null ),
     39    'googlesitekit-main-dashboard'                         => array( "googlesitekit-main-dashboard-db649d3c3b6d9027a824.js", null ),
     40    'googlesitekit-modules'                                => array( "googlesitekit-modules-dc6e37a871796540fbac.js", null ),
     41    'googlesitekit-modules-ads'                            => array( "googlesitekit-modules-ads-8a01949acbaf5f9513e3.js", null ),
     42    'googlesitekit-modules-adsense'                        => array( "googlesitekit-modules-adsense-d4e969b135b277b3f61b.js", null ),
     43    'googlesitekit-modules-analytics-4'                    => array( "googlesitekit-modules-analytics-4-00f0bb07e4bd025aa07f.js", null ),
     44    'googlesitekit-modules-pagespeed-insights'             => array( "googlesitekit-modules-pagespeed-insights-e5394ed3d712ca668967.js", null ),
     45    'googlesitekit-modules-reader-revenue-manager'         => array( "googlesitekit-modules-reader-revenue-manager-3ac3cc164752a4e67945.js", null ),
     46    'googlesitekit-modules-search-console'                 => array( "googlesitekit-modules-search-console-54fe3c8e34c8e7b2cdd7.js", null ),
     47    'googlesitekit-modules-tagmanager'                     => array( "googlesitekit-modules-tagmanager-36854685cfc078aa9ea4.js", null ),
     48    'googlesitekit-notifications'                          => array( "googlesitekit-notifications-e5815fba60fe1cb1e172.js", null ),
     49    'googlesitekit-polyfills'                              => array( "googlesitekit-polyfills-c5dfeeeb4566ab655187.js", null ),
     50    'googlesitekit-settings'                               => array( "googlesitekit-settings-c5ed8a54309d018a6b77.js", null ),
     51    'googlesitekit-splash'                                 => array( "googlesitekit-splash-76b922a28fcdee85f514.js", null ),
     52    'googlesitekit-user-input'                             => array( "googlesitekit-user-input-1c36e0eb8c8ea1c166b1.js", null ),
     53    'googlesitekit-widgets'                                => array( "googlesitekit-widgets-c4b49ec1e2ef6587bc2d.js", null ),
     54    'googlesitekit-wp-dashboard'                           => array( "googlesitekit-wp-dashboard-bfa6aa6193cf3a1caccc.js", null ),
    5555);
  • google-site-kit/trunk/google-site-kit.php

    r3134468 r3141863  
    1212 * Plugin URI:        https://sitekit.withgoogle.com
    1313 * 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.
    14  * Version:           1.133.0
     14 * Version:           1.134.0
    1515 * Requires at least: 5.2
    1616 * Requires PHP:      7.4
     
    2727
    2828// Define most essential constants.
    29 define( 'GOOGLESITEKIT_VERSION', '1.133.0' );
     29define( 'GOOGLESITEKIT_VERSION', '1.134.0' );
    3030define( 'GOOGLESITEKIT_PLUGIN_MAIN_FILE', __FILE__ );
    3131define( 'GOOGLESITEKIT_PHP_MINIMUM', '7.4.0' );
  • google-site-kit/trunk/includes/Core/Authentication/Authentication.php

    r3118692 r3141863  
    382382        add_action(
    383383            'heartbeat_tick',
    384             function () {
    385                 $this->maybe_refresh_token_for_screen( $this->context->input()->filter( INPUT_POST, 'screen_id' ) );
    386             }
     384            function ( $response, $screen_id ) {
     385                $this->maybe_refresh_token_for_screen( $screen_id );
     386            },
     387            10,
     388            2
    387389        );
    388390
  • google-site-kit/trunk/includes/Core/Remote_Features/Remote_Features.php

    r3134468 r3141863  
    4343     */
    4444    protected function get_default() {
    45         return array();
     45        return array(
     46            'last_updated_at' => 0,
     47        );
     48    }
     49
     50    /**
     51     * Includes the current timestamp to the setting and updates it.
     52     *
     53     * @since 1.134.0
     54     *
     55     * @param array $features features array.
     56     */
     57    public function update( $features ) {
     58        $features['last_updated_at'] = time();
     59
     60        return $this->set( $features );
    4661    }
    4762
     
    6075
    6176            foreach ( $value as $feature => $meta ) {
    62                 $new_value[ $feature ] = array( 'enabled' => ! empty( $meta['enabled'] ) );
     77                if ( 'last_updated_at' === $feature ) {
     78                    $new_value[ $feature ] = is_int( $meta ) ? $meta : 0;
     79                } else {
     80                    $new_value[ $feature ] = array( 'enabled' => ! empty( $meta['enabled'] ) );
     81                }
    6382            }
    6483
  • google-site-kit/trunk/includes/Core/Remote_Features/Remote_Features_Provider.php

    r3134468 r3141863  
    2727 */
    2828class Remote_Features_Provider {
     29
    2930    /**
    3031     * Credentials instance.
     
    6364
    6465    /**
     66     * Remote_Features_Fallback instance.
     67     *
     68     * @var Remote_Features_Fallback
     69     */
     70    private Remote_Features_Fallback $fallback;
     71
     72    /**
    6573     * Constructor.
    6674     *
     
    8189        );
    8290        $this->cron        = new Remote_Features_Cron( array( $this->syncer, 'pull_remote_features' ) );
     91        $this->fallback    = new Remote_Features_Fallback( $this->setting, $this->syncer );
    8392    }
    8493
     
    94103
    95104        add_action( 'admin_init', fn () => $this->on_admin_init() );
     105        add_action(
     106            'heartbeat_tick',
     107            fn ( $response, $screen_id ) => $this->on_heartbeat_tick( $screen_id ),
     108            10,
     109            2
     110        );
     111    }
     112
     113    /**
     114     * Handles the heartbeat AJAX callback.
     115     *
     116     * @param string $screen_id The screen ID.
     117     */
     118    protected function on_heartbeat_tick( $screen_id ) {
     119        if ( 'toplevel_page_googlesitekit-dashboard' !== $screen_id ) {
     120            return;
     121        }
     122
     123        $this->fallback->remote_features_sync_fallback();
    96124    }
    97125
  • google-site-kit/trunk/includes/Core/Remote_Features/Remote_Features_Syncer.php

    r3134468 r3141863  
    7878
    7979        if ( ! is_wp_error( $features ) && is_array( $features ) ) {
    80             $this->remote_features->set( $features );
     80            $this->remote_features->update( $features );
    8181        }
    8282    }
  • google-site-kit/trunk/includes/Core/Tracking/Tracking.php

    r2752206 r3141863  
    2828    use Method_Proxy_Trait;
    2929
    30     const TRACKING_ID = 'UA-130569087-3';
     30    const TRACKING_ID = 'G-EQDN3BWDSD';
    3131
    3232    /**
  • google-site-kit/trunk/includes/Modules/Analytics_4.php

    r3118692 r3141863  
    5858use Google\Site_Kit\Modules\Analytics_4\Advanced_Tracking;
    5959use Google\Site_Kit\Modules\Analytics_4\AMP_Tag;
    60 use Google\Site_Kit\Modules\Analytics_4\Audience_Settings;
    6160use Google\Site_Kit\Modules\Analytics_4\Custom_Dimensions_Data_Available;
    6261use Google\Site_Kit\Modules\Analytics_4\Synchronize_Property;
     
    9190use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface;
    9291use Google\Site_Kit\Core\REST_API\REST_Routes;
     92use Google\Site_Kit\Core\User\Audience_Settings;
    9393use stdClass;
    9494use WP_Error;
     
    660660                'request_scopes_message' => __( 'You’ll need to grant Site Kit permission to create new audiences for your Analytics property on your behalf.', 'google-site-kit' ),
    661661            );
    662             $datapoints['GET:audience-settings']                     = array(
    663                 'service' => '',
    664             );
    665             $datapoints['POST:audience-settings']                    = array(
    666                 'service' => '',
    667             );
    668662            $datapoints['POST:save-resource-data-availability-date'] = array(
    669663                'service' => '',
     
    10971091                        $post_body
    10981092                    );
    1099             case 'GET:audience-settings':
    1100                 return function () {
    1101                     return $this->audience_settings->get();
    1102                 };
    1103             case 'POST:audience-settings':
    1104                 $settings = $data['settings'];
    1105                 if ( ! isset( $settings['configuredAudiences'] ) ) {
    1106                     throw new Missing_Required_Param_Exception( 'configuredAudiences' );
    1107                 }
    1108 
    1109                 if ( ! is_array( $settings['configuredAudiences'] ) ) {
    1110                     throw new Invalid_Param_Exception( 'configuredAudiences' );
    1111                 }
    1112 
    1113                 if ( ! isset( $settings['isAudienceSegmentationWidgetHidden'] ) ) {
    1114                     throw new Missing_Required_Param_Exception( 'isAudienceSegmentationWidgetHidden' );
    1115                 }
    1116 
    1117                 if ( ! is_bool( $settings['isAudienceSegmentationWidgetHidden'] ) ) {
    1118                     throw new Invalid_Param_Exception( 'isAudienceSegmentationWidgetHidden' );
    1119                 }
    1120 
    1121                 $this->audience_settings->merge( $data['settings'] );
    1122 
    1123                 return function () {
    1124                     return $this->audience_settings->get();
    1125                 };
    11261093            case 'POST:create-account-ticket':
    11271094                if ( empty( $data['displayName'] ) ) {
  • google-site-kit/trunk/includes/Modules/Reader_Revenue_Manager.php

    r3127664 r3141863  
    3939use Google\Site_Kit\Modules\Search_Console\Settings as Search_Console_Settings;
    4040use Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle as Google_Service_SubscribewithGoogle;
     41use WP_Error;
    4142
    4243/**
     
    143144     *
    144145     * @since 1.131.0
     146     * @since 1.134.0 Checks if the user's publications includes the saved publication.
    145147     *
    146148     * @return boolean|WP_Error
     
    155157
    156158        try {
    157             $subscribewithgoogle->publications->listPublications(
    158                 array(
    159                     'pageSize' => 1,
    160                 )
    161             );
     159            $response = $subscribewithgoogle->publications->listPublications();
    162160        } catch ( Exception $e ) {
    163161            if ( $e->getCode() === 403 ) {
     
    167165        }
    168166
    169         return true;
     167        $publications   = array_values( $response->getPublications() );
     168        $settings       = $this->get_settings()->get();
     169        $publication_id = $settings['publicationID'];
     170
     171        // Check if the $publications array contains a publication with the saved
     172        // publication ID.
     173        foreach ( $publications as $publication ) {
     174            if (
     175                isset( $publication['publicationId'] ) &&
     176                $publication_id === $publication['publicationId']
     177            ) {
     178                return true;
     179            }
     180        }
     181
     182        return false;
    170183    }
    171184
     
    241254            'description' => __( 'Reader Revenue Manager helps publishers grow, retain, and engage their audiences, creating new revenue opportunities', 'google-site-kit' ),
    242255            'order'       => 5,
    243             'homepage'    => __( 'https://readerrevenue.withgoogle.com/', 'google-site-kit' ),
     256            'homepage'    => 'https://publishercenter.google.com',
    244257        );
    245258    }
  • google-site-kit/trunk/includes/Modules/Reader_Revenue_Manager/Web_Tag.php

    r3127664 r3141863  
    8383        // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion
    8484        wp_register_script( 'google_swgjs', 'https://news.google.com/swg/js/v1/swg-basic.js', array(), null, true );
    85         wp_add_inline_script( 'google_swgjs', $swg_inline_script );
     85        wp_script_add_data( 'google_swgjs', 'strategy', 'async' );
     86        wp_add_inline_script( 'google_swgjs', $swg_inline_script, 'before' );
    8687
    8788        wp_enqueue_script( 'google_swgjs' );
  • google-site-kit/trunk/includes/Plugin.php

    r3134468 r3141863  
    167167
    168168                $user_input->register();
     169
     170                $user = new Core\User\User( $user_options );
     171                $user->register();
    169172
    170173                $modules = new Core\Modules\Modules( $this->context, $options, $user_options, $authentication, $assets );
  • google-site-kit/trunk/includes/vendor/composer/autoload_classmap.php

    r3134468 r3141863  
    147147    'Google\\Site_Kit\\Core\\Remote_Features\\Remote_Features_Activation' => $baseDir . '/Core/Remote_Features/Remote_Features_Activation.php',
    148148    'Google\\Site_Kit\\Core\\Remote_Features\\Remote_Features_Cron' => $baseDir . '/Core/Remote_Features/Remote_Features_Cron.php',
     149    'Google\\Site_Kit\\Core\\Remote_Features\\Remote_Features_Fallback' => $baseDir . '/Core/Remote_Features/Remote_Features_Fallback.php',
    149150    'Google\\Site_Kit\\Core\\Remote_Features\\Remote_Features_Provider' => $baseDir . '/Core/Remote_Features/Remote_Features_Provider.php',
    150151    'Google\\Site_Kit\\Core\\Remote_Features\\Remote_Features_Syncer' => $baseDir . '/Core/Remote_Features/Remote_Features_Syncer.php',
     
    189190    'Google\\Site_Kit\\Core\\Tracking\\Tracking' => $baseDir . '/Core/Tracking/Tracking.php',
    190191    'Google\\Site_Kit\\Core\\Tracking\\Tracking_Consent' => $baseDir . '/Core/Tracking/Tracking_Consent.php',
     192    'Google\\Site_Kit\\Core\\User\\Audience_Segmentation' => $baseDir . '/Core/User/Audience_Segmentation.php',
     193    'Google\\Site_Kit\\Core\\User\\Audience_Settings' => $baseDir . '/Core/User/Audience_Settings.php',
     194    'Google\\Site_Kit\\Core\\User\\REST_Audience_Settings_Controller' => $baseDir . '/Core/User/REST_Audience_Settings_Controller.php',
     195    'Google\\Site_Kit\\Core\\User\\User' => $baseDir . '/Core/User/User.php',
    191196    'Google\\Site_Kit\\Core\\User_Input\\REST_User_Input_Controller' => $baseDir . '/Core/User_Input/REST_User_Input_Controller.php',
    192197    'Google\\Site_Kit\\Core\\User_Input\\Site_Specific_Answers' => $baseDir . '/Core/User_Input/Site_Specific_Answers.php',
     
    258263    'Google\\Site_Kit\\Modules\\Analytics_4\\Advanced_Tracking\\Event_List_Registry' => $baseDir . '/Modules/Analytics_4/Advanced_Tracking/Event_List_Registry.php',
    259264    'Google\\Site_Kit\\Modules\\Analytics_4\\Advanced_Tracking\\Script_Injector' => $baseDir . '/Modules/Analytics_4/Advanced_Tracking/Script_Injector.php',
    260     'Google\\Site_Kit\\Modules\\Analytics_4\\Audience_Settings' => $baseDir . '/Modules/Analytics_4/Audience_Settings.php',
    261265    'Google\\Site_Kit\\Modules\\Analytics_4\\Custom_Dimensions_Data_Available' => $baseDir . '/Modules/Analytics_4/Custom_Dimensions_Data_Available.php',
    262266    'Google\\Site_Kit\\Modules\\Analytics_4\\GoogleAnalyticsAdmin\\AccountProvisioningService' => $baseDir . '/Modules/Analytics_4/GoogleAnalyticsAdmin/AccountProvisioningService.php',
  • google-site-kit/trunk/readme.txt

    r3134468 r3141863  
    55Tested up to:      6.6
    66Requires PHP:      7.4
    7 Stable tag:        1.133.0
     7Stable tag:        1.134.0
    88License:           Apache License 2.0
    99License URI:       https://www.apache.org/licenses/LICENSE-2.0
     
    110110== Changelog ==
    111111
    112 = 1.133.0 =
     112= 1.134.0 =
    113113
    114114**Enhanced**
    115115
    116 * Add callout buttons. See [#9063](https://github.com/google/site-kit-wp/issues/9063).
    117 * Implement the Audience Creation Notice as a component which is visible in Storybook. See [#8986](https://github.com/google/site-kit-wp/issues/8986).
    118 * Add datastore infrastructure to get queued notifications. See [#8975](https://github.com/google/site-kit-wp/issues/8975).
    119 * Update the audience segmentation notice that is displayed in selection panel to not disappear until two audiences are selected. See [#8909](https://github.com/google/site-kit-wp/issues/8909).
    120 * Ensure the “temporarily hidden” state of an audience with zero data is cleared when the audience is removed from the selection. See [#8877](https://github.com/google/site-kit-wp/issues/8877).
    121 * Add Reader Revenue Manager publication approved overlay notification. See [#8843](https://github.com/google/site-kit-wp/issues/8843).
    122 * Implement the settings view screen for the Reader Revenue Manager module. See [#8842](https://github.com/google/site-kit-wp/issues/8842).
    123 * Implement the settings edit view for the Reader Revenue Manager module. See [#8841](https://github.com/google/site-kit-wp/issues/8841).
    124 * Add periodic automatic refresh behaviour in the Reader Revenue Manager setup form. See [#8839](https://github.com/google/site-kit-wp/issues/8839).
    125 * Add the `PublicationCreate` component that encapsulates the publication creation flow for the Reader Revenue Manager module, presented in Storybook. See [#8836](https://github.com/google/site-kit-wp/issues/8836).
    126 * Introduce Reader Revenue Manager setup flow. See [#8800](https://github.com/google/site-kit-wp/issues/8800).
    127 * Add a mechanism to synchronize the onboarding state of a publication once every hour in the Reader Revenue Manager module. See [#8797](https://github.com/google/site-kit-wp/issues/8797).
    128 * Update Consent Mode to always include Switzerland in its list of relevant areas. See [#8720](https://github.com/google/site-kit-wp/issues/8720).
    129 * Ensure remote features are loaded as early as possible during plugin initialization. See [#8341](https://github.com/google/site-kit-wp/issues/8341).
    130 * Add a notice to the Audience Selection Panel that allows creation of the "New visitors" and "Returning visitors" audiences. See [#8164](https://github.com/google/site-kit-wp/issues/8164).
    131 * Provide the ability to create a required custom dimension in the "Top content" metric section if it's missing. See [#8153](https://github.com/google/site-kit-wp/issues/8153).
     116* Refactor the ZeroDataNotification to use the new lighter Notification component. See [#9184](https://github.com/google/site-kit-wp/issues/9184).
     117* Modify the Reader Revenue Manager's `resetPublications` action to clear publications before invalidating the `getPublications` resolver. See [#9176](https://github.com/google/site-kit-wp/issues/9176).
     118* Improve the Reader Revenue Manager settings edit screen by handling cases where the configured publication is unavailable, or the user lacks access by displaying appropriate notices. See [#9151](https://github.com/google/site-kit-wp/issues/9151).
     119* Improve the check for whether a user has access to the Reader Revenue Manager module, requiring the user to have visibility of the connected publication ID. See [#9150](https://github.com/google/site-kit-wp/issues/9150).
     120* Refactor the GatheringDataNotification to use a newly refactored version of the BannerNotification component. See [#9071](https://github.com/google/site-kit-wp/issues/9071).
     121* Add the `async` attribute to the Subscribe with Google script tag. See [#9055](https://github.com/google/site-kit-wp/issues/9055).
     122* Refactor the ZeroDataNotification to use the new Notifications approach. See [#8977](https://github.com/google/site-kit-wp/issues/8977).
     123* Update notifications to use new notifications infrastructure. See [#8976](https://github.com/google/site-kit-wp/issues/8976).
     124* Improve error handling for widgets. See [#8939](https://github.com/google/site-kit-wp/issues/8939).
     125* Handle errors when retrieving the user count to show in the Audience Selection Panel for audiences which are in the partial data state. See [#8923](https://github.com/google/site-kit-wp/issues/8923).
     126* Adjust the CTA and "New" badge positions for widget areas on mobile and tablet viewports. See [#8863](https://github.com/google/site-kit-wp/issues/8863).
     127* Add Analytics tracking events for the Reader Revenue Manager module. See [#8847](https://github.com/google/site-kit-wp/issues/8847).
     128* Add the Reader Revenue Manager module setup CTA banner notification to the Site Kit main dashboard, visible only on HTTPS-enabled sites. See [#8846](https://github.com/google/site-kit-wp/issues/8846).
     129* Add the Reader Revenue Manager module success setup banner notification. See [#8840](https://github.com/google/site-kit-wp/issues/8840).
     130* Detached audience segmentation settings from the Analytics module. See [#8810](https://github.com/google/site-kit-wp/issues/8810).
     131* Implement the placeholder tile variants for the Audience Tile that appear when only one audience is selected. See [#8146](https://github.com/google/site-kit-wp/issues/8146).
     132* Add fallback for remote feature activation. See [#7531](https://github.com/google/site-kit-wp/issues/7531).
    132133
    133134**Changed**
    134135
    135 * Implement a shared SubtleNotification component and update existing notifications to use it. See [#8725](https://github.com/google/site-kit-wp/issues/8725).
     136* Remove UA Analytics tracking from Site Kit admin. See [#9042](https://github.com/google/site-kit-wp/issues/9042).
    136137
    137138**Fixed**
    138139
    139 * Fix the react dashboard error caused by the New badge component for key metric widgets. Props Towerss. See [#9094](https://github.com/google/site-kit-wp/issues/9094).
    140 * Fix full-stop issue in the survey pop-up footer. See [#9075](https://github.com/google/site-kit-wp/issues/9075).
    141 * Fix the broken layout issue in the audience segmentation widget on mobile and tablet devices. See [#8930](https://github.com/google/site-kit-wp/issues/8930).
    142 * Update segmentation tiles to properly display non-empty data. See [#8921](https://github.com/google/site-kit-wp/issues/8921).
    143 * Fix bug that could cause chart legend values to overflow on mobile screen sizes. See [#7565](https://github.com/google/site-kit-wp/issues/7565).
    144 * Update dashboard sharing to restore sharing capabilities for modules whose owner lost sharing capabilities. See [#5354](https://github.com/google/site-kit-wp/issues/5354).
     140* Update the "See full details" link in Reader Revenue Manager. See [#9144](https://github.com/google/site-kit-wp/issues/9144).
     141* Ensure that a Selection Panel without any available items doesn't display the available items title. See [#9109](https://github.com/google/site-kit-wp/issues/9109).
     142* Fix bug where selected audiences which have been archived would remain visible in the loading state. See [#9095](https://github.com/google/site-kit-wp/issues/9095).
    145143
    146144[See changelog for all versions](https://raw.githubusercontent.com/google/site-kit-wp/main/changelog.txt).
Note: See TracChangeset for help on using the changeset viewer.