Plugin Directory

Changeset 3359063


Ignore:
Timestamp:
09/10/2025 09:40:23 AM (7 months ago)
Author:
rankmath
Message:

Update to version 1.0.253 from GitHub

Location:
seo-by-rank-math
Files:
22 edited
1 copied

Legend:

Unmodified
Added
Removed
  • seo-by-rank-math/tags/1.0.253/includes/class-tracking.php

    r3351886 r3359063  
    208208
    209209        // Only track Rank Math admin/configuration pages.
    210         if ( ! Str::starts_with( Param::get( 'page' ), 'rank-math' ) ) {
     210        if ( ! Str::starts_with( 'rank-math', Param::get( 'page' ) ) ) {
    211211            return;
    212212        }
  • seo-by-rank-math/tags/1.0.253/languages/rank-math.pot

    r3357631 r3359063  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Rank Math SEO 1.0.253-beta\n"
     5"Project-Id-Version: Rank Math SEO 1.0.253\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/seo-by-rank-math\n"
    77"Last-Translator: Rank Math <support@rankmath.com>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-09-08T07:03:13+00:00\n"
     12"POT-Creation-Date: 2025-09-10T05:06:57+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
  • seo-by-rank-math/tags/1.0.253/rank-math.php

    r3357631 r3359063  
    1010 * @wordpress-plugin
    1111 * Plugin Name:       Rank Math SEO
    12  * Version:           1.0.253-beta
     12 * Version:           1.0.253
    1313 * Plugin URI:        https://rankmath.com/
    1414 * Description:       Rank Math SEO is the Best WordPress SEO plugin with the features of many SEO and AI SEO tools in a single package to help multiply your SEO traffic.
     
    3535     * @var string
    3636     */
    37     public $version = '1.0.253-beta';
     37    public $version = '1.0.253';
    3838
    3939    /**
  • seo-by-rank-math/tags/1.0.253/readme.txt

    r3352413 r3359063  
    66Requires at least: 6.3
    77Requires PHP: 7.4
    8 Stable tag: 1.0.252.1
     8Stable tag: 1.0.253
    99License: GPLv3 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.txt
     
    340340== Changelog ==
    341341
    342 = 1.0.252 [Aug 28, 2025] =
    343 - Added: Option to enable/disable [Usage Tracking](https://rankmath.com/kb/usage-tracking/) (disabled by default). Enabling this option would help us prioritize development of features that matter the most to you and to identify & resolve issues quickly.
    344 - Improved: Updated the endpoint used for [Generating Image Alt Text with Content AI](https://rankmath.com/kb/generate-alt-text-with-content-ai/). Now, Content AI generates more accurate alt texts for your images.
    345 - Improved: Security of the plugin's Bulk Update SEO Data feature and the endpoint for retrieving the featured image ID to prevent potential exploitation by users with edit-page access, thanks to Abu Hurayra & Patchstack for responsibly disclosing the issue
    346 - Fixed: Extra space in [SERP Preview description](https://rankmath.com/kb/general-tab/#the-preview-section) when text ends with an HTML tag
    347 - Fixed: [Post Titles Missing Focus Keywords test in SEO Analysis](https://rankmath.com/kb/seo-analysis/#post-titles-missing-focus-keywords-test) was not working correctly when `&` is included in the Focus Keyword
    348 - Fixed: [Time to Read in Enhanced Slack Sharing](https://rankmath.com/kb/slack-enhanced-sharing/#enhanced-sharing) was not accounting for shortcodes in content
    349 - Fixed: Untranslated strings on the Scheduled Actions page when the WooCommerce plugin is active
    350 - Fixed: Localized data from the plugin was included in the REST output
    351 - Fixed: [Rewrite Titles](https://rankmath.com/kb/titles-and-meta/#rewrite-titles) option was always showing in Block themes even when not needed
    352 - Fixed: Incompatibility with LiteSpeed Cache plugin when Rewrite Titles option is enabled
    353 
    354 = 1.0.252.1 [Aug 29, 2025] =
    355 - Fixed: Incompatibility with the Inline CSS when the [Slack Enhanced Sharing option](https://rankmath.com/kb/titles-and-meta/#pages-slack-enhanced-sharing) is enabled
     342= 1.0.253 [Sept 10, 2025] =
     343- Fixed: Missing option to select [Primary term](https://rankmath.com/kb/how-to-choose-a-primary-category/#how-to-choose-a-primary-category) when [filter to disable Rank Math's Sidebar integration](https://rankmath.com/kb/filters-hooks-api-developer/#disable-gutenberg-sidebar) was used
     344- Fixed: [Custom Field variable](https://rankmath.com/kb/variables-in-seo-title-description/#custom-field-advanced) was not working in the [SERP fields](https://rankmath.com/kb/general-tab/#seo-title-permalink-description)
     345- Fixed: Duplicate entries were created in the Analytics objects table when updating a post after switching it from Elementor's Top Bar
     346- Fixed: Incompatibility with the AffiliateWP plugin when [Remove Base option](https://rankmath.com/kb/general-settings/?#remove-base) was enabled
    356347
    357348Full changelog can be found here - **[Rank Math changelog](https://rankmath.com/changelog/?utm_source=Plugin&utm_medium=Changelog&utm_campaign=WP)**
  • seo-by-rank-math/tags/1.0.253/vendor/autoload.php

    r3357631 r3359063  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit52b3e30212eeb0076497402bfbe61e27::getLoader();
     25return ComposerAutoloaderInit5f7baa3c88d3863c9cdff6c3f96a44d9::getLoader();
  • seo-by-rank-math/tags/1.0.253/vendor/composer/autoload_real.php

    r3357631 r3359063  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit52b3e30212eeb0076497402bfbe61e27
     5class ComposerAutoloaderInit5f7baa3c88d3863c9cdff6c3f96a44d9
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit52b3e30212eeb0076497402bfbe61e27', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit5f7baa3c88d3863c9cdff6c3f96a44d9', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit52b3e30212eeb0076497402bfbe61e27', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit5f7baa3c88d3863c9cdff6c3f96a44d9', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit52b3e30212eeb0076497402bfbe61e27::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit5f7baa3c88d3863c9cdff6c3f96a44d9::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInit52b3e30212eeb0076497402bfbe61e27::$files;
     36        $includeFiles = \Composer\Autoload\ComposerStaticInit5f7baa3c88d3863c9cdff6c3f96a44d9::$files;
    3737        foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequire52b3e30212eeb0076497402bfbe61e27($fileIdentifier, $file);
     38            composerRequire5f7baa3c88d3863c9cdff6c3f96a44d9($fileIdentifier, $file);
    3939        }
    4040
     
    4848 * @return void
    4949 */
    50 function composerRequire52b3e30212eeb0076497402bfbe61e27($fileIdentifier, $file)
     50function composerRequire5f7baa3c88d3863c9cdff6c3f96a44d9($fileIdentifier, $file)
    5151{
    5252    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • seo-by-rank-math/tags/1.0.253/vendor/composer/autoload_static.php

    r3357631 r3359063  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit52b3e30212eeb0076497402bfbe61e27
     7class ComposerStaticInit5f7baa3c88d3863c9cdff6c3f96a44d9
    88{
    99    public static $files = array (
     
    424424    {
    425425        return \Closure::bind(function () use ($loader) {
    426             $loader->prefixLengthsPsr4 = ComposerStaticInit52b3e30212eeb0076497402bfbe61e27::$prefixLengthsPsr4;
    427             $loader->prefixDirsPsr4 = ComposerStaticInit52b3e30212eeb0076497402bfbe61e27::$prefixDirsPsr4;
    428             $loader->classMap = ComposerStaticInit52b3e30212eeb0076497402bfbe61e27::$classMap;
     426            $loader->prefixLengthsPsr4 = ComposerStaticInit5f7baa3c88d3863c9cdff6c3f96a44d9::$prefixLengthsPsr4;
     427            $loader->prefixDirsPsr4 = ComposerStaticInit5f7baa3c88d3863c9cdff6c3f96a44d9::$prefixDirsPsr4;
     428            $loader->classMap = ComposerStaticInit5f7baa3c88d3863c9cdff6c3f96a44d9::$classMap;
    429429
    430430        }, null, ClassLoader::class);
  • seo-by-rank-math/tags/1.0.253/vendor/composer/installed.json

    r3349482 r3359063  
    287287        {
    288288            "name": "wp-media/wp-mixpanel",
    289             "version": "v1.1.2",
    290             "version_normalized": "1.1.2.0",
     289            "version": "v1.2.0",
     290            "version_normalized": "1.2.0.0",
    291291            "source": {
    292292                "type": "git",
    293293                "url": "https://github.com/wp-media/wp-mixpanel.git",
    294                 "reference": "1eddae0d32f802ac14003c80c7ff096adf8e232f"
    295             },
    296             "dist": {
    297                 "type": "zip",
    298                 "url": "https://api.github.com/repos/wp-media/wp-mixpanel/zipball/1eddae0d32f802ac14003c80c7ff096adf8e232f",
    299                 "reference": "1eddae0d32f802ac14003c80c7ff096adf8e232f",
     294                "reference": "b73de3558313642298a0ffaf32afbe8b555622ac"
     295            },
     296            "dist": {
     297                "type": "zip",
     298                "url": "https://api.github.com/repos/wp-media/wp-mixpanel/zipball/b73de3558313642298a0ffaf32afbe8b555622ac",
     299                "reference": "b73de3558313642298a0ffaf32afbe8b555622ac",
    300300                "shasum": ""
    301301            },
     
    314314                "wp-media/phpunit": "^3"
    315315            },
    316             "time": "2025-08-20T18:28:16+00:00",
     316            "time": "2025-09-08T14:54:11+00:00",
    317317            "type": "library",
    318318            "installation-source": "dist",
     
    339339            "support": {
    340340                "issues": "https://github.com/wp-media/wp-mixpanel/issues",
    341                 "source": "https://github.com/wp-media/wp-mixpanel/tree/v1.1.2"
     341                "source": "https://github.com/wp-media/wp-mixpanel/tree/v1.2.0"
    342342            },
    343343            "install-path": "../wp-media/wp-mixpanel"
  • seo-by-rank-math/tags/1.0.253/vendor/composer/installed.php

    r3357631 r3359063  
    22    'root' => array(
    33        'name' => 'rankmath/seo-by-rank-math',
    4         'pretty_version' => 'v1.0.253-beta',
    5         'version' => '1.0.253.0-beta',
    6         'reference' => 'd125003c966923df3c33eb7b2ba9ee70dc0b22d3',
     4        'pretty_version' => 'v1.0.253',
     5        'version' => '1.0.253.0',
     6        'reference' => '8cf7932d31a6fd23a6aff2c25ee8f999c890b0e9',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    4848        ),
    4949        'rankmath/seo-by-rank-math' => array(
    50             'pretty_version' => 'v1.0.253-beta',
    51             'version' => '1.0.253.0-beta',
    52             'reference' => 'd125003c966923df3c33eb7b2ba9ee70dc0b22d3',
     50            'pretty_version' => 'v1.0.253',
     51            'version' => '1.0.253.0',
     52            'reference' => '8cf7932d31a6fd23a6aff2c25ee8f999c890b0e9',
    5353            'type' => 'wordpress-plugin',
    5454            'install_path' => __DIR__ . '/../../',
     
    6666        ),
    6767        'wp-media/wp-mixpanel' => array(
    68             'pretty_version' => 'v1.1.2',
    69             'version' => '1.1.2.0',
    70             'reference' => '1eddae0d32f802ac14003c80c7ff096adf8e232f',
     68            'pretty_version' => 'v1.2.0',
     69            'version' => '1.2.0.0',
     70            'reference' => 'b73de3558313642298a0ffaf32afbe8b555622ac',
    7171            'type' => 'library',
    7272            'install_path' => __DIR__ . '/../wp-media/wp-mixpanel',
  • seo-by-rank-math/tags/1.0.253/vendor/wp-media/wp-mixpanel/src/Optin.php

    r3349482 r3359063  
    5050
    5151    /**
     52     * Check if tracking is allowed.
     53     *
     54     * @return bool
     55     */
     56    public function can_track(): bool {
     57        return (bool) get_option( $this->plugin_slug . '_mixpanel_optin', false );
     58    }
     59
     60    /**
    5261     * Enable the opt-in.
    5362     *
  • seo-by-rank-math/tags/1.0.253/vendor/wp-media/wp-mixpanel/src/TrackingPlugin.php

    r3349482 r3359063  
    5454     * @param string  $event      Event name.
    5555     * @param mixed[] $properties Event properties.
     56     * @param string  $event_capability The capability required to track the event.
    5657     */
    57     public function track( string $event, array $properties ): void {
     58    public function track( string $event, array $properties, string $event_capability = '' ): void {
     59        /**
     60         * Filter the default capability required to track a specific event.
     61         *
     62         * @param string $capability The capability required to track the event.
     63         * @param string $event      The event name.
     64         * @param string $app        The application name.
     65         */
     66        $default = apply_filters( 'wp_mixpanel_event_capability', 'manage_options', $event, $this->app );
     67
     68        if ( empty( $event_capability ) ) {
     69            $event_capability = $default;
     70        }
     71
     72        if ( ! current_user_can( $event_capability ) ) {
     73            return;
     74        }
     75
    5876        $host = wp_parse_url( get_home_url(), PHP_URL_HOST );
    5977
     
    91109        );
    92110    }
     111
     112    /**
     113     * Add the Mixpanel script & initialize it
     114     */
     115    public function add_script(): void {
     116        /**
     117         * Filter the default capability required to track with JS.
     118         *
     119         * @param string $capability The capability required to track the event.
     120         * @param string $app        The application name.
     121         */
     122        $capability = apply_filters( 'wp_mixpanel_js_track_capability', 'manage_options', $this->app );
     123
     124        if ( ! current_user_can( $capability ) ) {
     125            return;
     126        }
     127
     128        parent::add_script();
     129    }
    93130}
  • seo-by-rank-math/trunk/includes/class-tracking.php

    r3351886 r3359063  
    208208
    209209        // Only track Rank Math admin/configuration pages.
    210         if ( ! Str::starts_with( Param::get( 'page' ), 'rank-math' ) ) {
     210        if ( ! Str::starts_with( 'rank-math', Param::get( 'page' ) ) ) {
    211211            return;
    212212        }
  • seo-by-rank-math/trunk/languages/rank-math.pot

    r3357631 r3359063  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Rank Math SEO 1.0.253-beta\n"
     5"Project-Id-Version: Rank Math SEO 1.0.253\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/seo-by-rank-math\n"
    77"Last-Translator: Rank Math <support@rankmath.com>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-09-08T07:03:13+00:00\n"
     12"POT-Creation-Date: 2025-09-10T05:06:57+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
  • seo-by-rank-math/trunk/rank-math.php

    r3357631 r3359063  
    1010 * @wordpress-plugin
    1111 * Plugin Name:       Rank Math SEO
    12  * Version:           1.0.253-beta
     12 * Version:           1.0.253
    1313 * Plugin URI:        https://rankmath.com/
    1414 * Description:       Rank Math SEO is the Best WordPress SEO plugin with the features of many SEO and AI SEO tools in a single package to help multiply your SEO traffic.
     
    3535     * @var string
    3636     */
    37     public $version = '1.0.253-beta';
     37    public $version = '1.0.253';
    3838
    3939    /**
  • seo-by-rank-math/trunk/readme.txt

    r3352413 r3359063  
    66Requires at least: 6.3
    77Requires PHP: 7.4
    8 Stable tag: 1.0.252.1
     8Stable tag: 1.0.253
    99License: GPLv3 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.txt
     
    340340== Changelog ==
    341341
    342 = 1.0.252 [Aug 28, 2025] =
    343 - Added: Option to enable/disable [Usage Tracking](https://rankmath.com/kb/usage-tracking/) (disabled by default). Enabling this option would help us prioritize development of features that matter the most to you and to identify & resolve issues quickly.
    344 - Improved: Updated the endpoint used for [Generating Image Alt Text with Content AI](https://rankmath.com/kb/generate-alt-text-with-content-ai/). Now, Content AI generates more accurate alt texts for your images.
    345 - Improved: Security of the plugin's Bulk Update SEO Data feature and the endpoint for retrieving the featured image ID to prevent potential exploitation by users with edit-page access, thanks to Abu Hurayra & Patchstack for responsibly disclosing the issue
    346 - Fixed: Extra space in [SERP Preview description](https://rankmath.com/kb/general-tab/#the-preview-section) when text ends with an HTML tag
    347 - Fixed: [Post Titles Missing Focus Keywords test in SEO Analysis](https://rankmath.com/kb/seo-analysis/#post-titles-missing-focus-keywords-test) was not working correctly when `&` is included in the Focus Keyword
    348 - Fixed: [Time to Read in Enhanced Slack Sharing](https://rankmath.com/kb/slack-enhanced-sharing/#enhanced-sharing) was not accounting for shortcodes in content
    349 - Fixed: Untranslated strings on the Scheduled Actions page when the WooCommerce plugin is active
    350 - Fixed: Localized data from the plugin was included in the REST output
    351 - Fixed: [Rewrite Titles](https://rankmath.com/kb/titles-and-meta/#rewrite-titles) option was always showing in Block themes even when not needed
    352 - Fixed: Incompatibility with LiteSpeed Cache plugin when Rewrite Titles option is enabled
    353 
    354 = 1.0.252.1 [Aug 29, 2025] =
    355 - Fixed: Incompatibility with the Inline CSS when the [Slack Enhanced Sharing option](https://rankmath.com/kb/titles-and-meta/#pages-slack-enhanced-sharing) is enabled
     342= 1.0.253 [Sept 10, 2025] =
     343- Fixed: Missing option to select [Primary term](https://rankmath.com/kb/how-to-choose-a-primary-category/#how-to-choose-a-primary-category) when [filter to disable Rank Math's Sidebar integration](https://rankmath.com/kb/filters-hooks-api-developer/#disable-gutenberg-sidebar) was used
     344- Fixed: [Custom Field variable](https://rankmath.com/kb/variables-in-seo-title-description/#custom-field-advanced) was not working in the [SERP fields](https://rankmath.com/kb/general-tab/#seo-title-permalink-description)
     345- Fixed: Duplicate entries were created in the Analytics objects table when updating a post after switching it from Elementor's Top Bar
     346- Fixed: Incompatibility with the AffiliateWP plugin when [Remove Base option](https://rankmath.com/kb/general-settings/?#remove-base) was enabled
    356347
    357348Full changelog can be found here - **[Rank Math changelog](https://rankmath.com/changelog/?utm_source=Plugin&utm_medium=Changelog&utm_campaign=WP)**
  • seo-by-rank-math/trunk/vendor/autoload.php

    r3357631 r3359063  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit52b3e30212eeb0076497402bfbe61e27::getLoader();
     25return ComposerAutoloaderInit5f7baa3c88d3863c9cdff6c3f96a44d9::getLoader();
  • seo-by-rank-math/trunk/vendor/composer/autoload_real.php

    r3357631 r3359063  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit52b3e30212eeb0076497402bfbe61e27
     5class ComposerAutoloaderInit5f7baa3c88d3863c9cdff6c3f96a44d9
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit52b3e30212eeb0076497402bfbe61e27', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit5f7baa3c88d3863c9cdff6c3f96a44d9', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit52b3e30212eeb0076497402bfbe61e27', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit5f7baa3c88d3863c9cdff6c3f96a44d9', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit52b3e30212eeb0076497402bfbe61e27::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit5f7baa3c88d3863c9cdff6c3f96a44d9::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInit52b3e30212eeb0076497402bfbe61e27::$files;
     36        $includeFiles = \Composer\Autoload\ComposerStaticInit5f7baa3c88d3863c9cdff6c3f96a44d9::$files;
    3737        foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequire52b3e30212eeb0076497402bfbe61e27($fileIdentifier, $file);
     38            composerRequire5f7baa3c88d3863c9cdff6c3f96a44d9($fileIdentifier, $file);
    3939        }
    4040
     
    4848 * @return void
    4949 */
    50 function composerRequire52b3e30212eeb0076497402bfbe61e27($fileIdentifier, $file)
     50function composerRequire5f7baa3c88d3863c9cdff6c3f96a44d9($fileIdentifier, $file)
    5151{
    5252    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • seo-by-rank-math/trunk/vendor/composer/autoload_static.php

    r3357631 r3359063  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit52b3e30212eeb0076497402bfbe61e27
     7class ComposerStaticInit5f7baa3c88d3863c9cdff6c3f96a44d9
    88{
    99    public static $files = array (
     
    424424    {
    425425        return \Closure::bind(function () use ($loader) {
    426             $loader->prefixLengthsPsr4 = ComposerStaticInit52b3e30212eeb0076497402bfbe61e27::$prefixLengthsPsr4;
    427             $loader->prefixDirsPsr4 = ComposerStaticInit52b3e30212eeb0076497402bfbe61e27::$prefixDirsPsr4;
    428             $loader->classMap = ComposerStaticInit52b3e30212eeb0076497402bfbe61e27::$classMap;
     426            $loader->prefixLengthsPsr4 = ComposerStaticInit5f7baa3c88d3863c9cdff6c3f96a44d9::$prefixLengthsPsr4;
     427            $loader->prefixDirsPsr4 = ComposerStaticInit5f7baa3c88d3863c9cdff6c3f96a44d9::$prefixDirsPsr4;
     428            $loader->classMap = ComposerStaticInit5f7baa3c88d3863c9cdff6c3f96a44d9::$classMap;
    429429
    430430        }, null, ClassLoader::class);
  • seo-by-rank-math/trunk/vendor/composer/installed.json

    r3349482 r3359063  
    287287        {
    288288            "name": "wp-media/wp-mixpanel",
    289             "version": "v1.1.2",
    290             "version_normalized": "1.1.2.0",
     289            "version": "v1.2.0",
     290            "version_normalized": "1.2.0.0",
    291291            "source": {
    292292                "type": "git",
    293293                "url": "https://github.com/wp-media/wp-mixpanel.git",
    294                 "reference": "1eddae0d32f802ac14003c80c7ff096adf8e232f"
    295             },
    296             "dist": {
    297                 "type": "zip",
    298                 "url": "https://api.github.com/repos/wp-media/wp-mixpanel/zipball/1eddae0d32f802ac14003c80c7ff096adf8e232f",
    299                 "reference": "1eddae0d32f802ac14003c80c7ff096adf8e232f",
     294                "reference": "b73de3558313642298a0ffaf32afbe8b555622ac"
     295            },
     296            "dist": {
     297                "type": "zip",
     298                "url": "https://api.github.com/repos/wp-media/wp-mixpanel/zipball/b73de3558313642298a0ffaf32afbe8b555622ac",
     299                "reference": "b73de3558313642298a0ffaf32afbe8b555622ac",
    300300                "shasum": ""
    301301            },
     
    314314                "wp-media/phpunit": "^3"
    315315            },
    316             "time": "2025-08-20T18:28:16+00:00",
     316            "time": "2025-09-08T14:54:11+00:00",
    317317            "type": "library",
    318318            "installation-source": "dist",
     
    339339            "support": {
    340340                "issues": "https://github.com/wp-media/wp-mixpanel/issues",
    341                 "source": "https://github.com/wp-media/wp-mixpanel/tree/v1.1.2"
     341                "source": "https://github.com/wp-media/wp-mixpanel/tree/v1.2.0"
    342342            },
    343343            "install-path": "../wp-media/wp-mixpanel"
  • seo-by-rank-math/trunk/vendor/composer/installed.php

    r3357631 r3359063  
    22    'root' => array(
    33        'name' => 'rankmath/seo-by-rank-math',
    4         'pretty_version' => 'v1.0.253-beta',
    5         'version' => '1.0.253.0-beta',
    6         'reference' => 'd125003c966923df3c33eb7b2ba9ee70dc0b22d3',
     4        'pretty_version' => 'v1.0.253',
     5        'version' => '1.0.253.0',
     6        'reference' => '8cf7932d31a6fd23a6aff2c25ee8f999c890b0e9',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    4848        ),
    4949        'rankmath/seo-by-rank-math' => array(
    50             'pretty_version' => 'v1.0.253-beta',
    51             'version' => '1.0.253.0-beta',
    52             'reference' => 'd125003c966923df3c33eb7b2ba9ee70dc0b22d3',
     50            'pretty_version' => 'v1.0.253',
     51            'version' => '1.0.253.0',
     52            'reference' => '8cf7932d31a6fd23a6aff2c25ee8f999c890b0e9',
    5353            'type' => 'wordpress-plugin',
    5454            'install_path' => __DIR__ . '/../../',
     
    6666        ),
    6767        'wp-media/wp-mixpanel' => array(
    68             'pretty_version' => 'v1.1.2',
    69             'version' => '1.1.2.0',
    70             'reference' => '1eddae0d32f802ac14003c80c7ff096adf8e232f',
     68            'pretty_version' => 'v1.2.0',
     69            'version' => '1.2.0.0',
     70            'reference' => 'b73de3558313642298a0ffaf32afbe8b555622ac',
    7171            'type' => 'library',
    7272            'install_path' => __DIR__ . '/../wp-media/wp-mixpanel',
  • seo-by-rank-math/trunk/vendor/wp-media/wp-mixpanel/src/Optin.php

    r3349482 r3359063  
    5050
    5151    /**
     52     * Check if tracking is allowed.
     53     *
     54     * @return bool
     55     */
     56    public function can_track(): bool {
     57        return (bool) get_option( $this->plugin_slug . '_mixpanel_optin', false );
     58    }
     59
     60    /**
    5261     * Enable the opt-in.
    5362     *
  • seo-by-rank-math/trunk/vendor/wp-media/wp-mixpanel/src/TrackingPlugin.php

    r3349482 r3359063  
    5454     * @param string  $event      Event name.
    5555     * @param mixed[] $properties Event properties.
     56     * @param string  $event_capability The capability required to track the event.
    5657     */
    57     public function track( string $event, array $properties ): void {
     58    public function track( string $event, array $properties, string $event_capability = '' ): void {
     59        /**
     60         * Filter the default capability required to track a specific event.
     61         *
     62         * @param string $capability The capability required to track the event.
     63         * @param string $event      The event name.
     64         * @param string $app        The application name.
     65         */
     66        $default = apply_filters( 'wp_mixpanel_event_capability', 'manage_options', $event, $this->app );
     67
     68        if ( empty( $event_capability ) ) {
     69            $event_capability = $default;
     70        }
     71
     72        if ( ! current_user_can( $event_capability ) ) {
     73            return;
     74        }
     75
    5876        $host = wp_parse_url( get_home_url(), PHP_URL_HOST );
    5977
     
    91109        );
    92110    }
     111
     112    /**
     113     * Add the Mixpanel script & initialize it
     114     */
     115    public function add_script(): void {
     116        /**
     117         * Filter the default capability required to track with JS.
     118         *
     119         * @param string $capability The capability required to track the event.
     120         * @param string $app        The application name.
     121         */
     122        $capability = apply_filters( 'wp_mixpanel_js_track_capability', 'manage_options', $this->app );
     123
     124        if ( ! current_user_can( $capability ) ) {
     125            return;
     126        }
     127
     128        parent::add_script();
     129    }
    93130}
Note: See TracChangeset for help on using the changeset viewer.