Making WordPress.org

Changeset 14506


Ignore:
Timestamp:
08/05/2025 02:24:51 AM (14 months ago)
Author:
dd32
Message:

Plugin Directory: Sync the version updates to the Stats system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-api-update-updater.php

    r14502 r14506  
    159159                }
    160160
     161                // Sync the latest version to Stats.
     162                if ( function_exists( '\WordPressdotorg\Stats\sync_latest_version' ) ) {
     163                        \WordPressdotorg\Stats\sync_latest_version(
     164                                'plugin',
     165                                array(
     166                                        $plugin_slug => $version
     167                                )
     168                        );
     169                }
     170
    161171                return true;
    162172        }
Note: See TracChangeset for help on using the changeset viewer.