Making WordPress.org

Ticket #6671: 6671.patch

File 6671.patch, 5.7 KB (added by upadalavipul, 16 months ago)
  • wordpress.org/public_html/wp-content/plugins/photo-directory/inc/search.php

     
    101101         * @return string
    102102         */
    103103        public static function limit_partial_matching( $where, $query ) {
    104                 global $wpdb;
    105104
    106105                if ( ! is_admin() && $query->is_search() && $query->is_main_query() ) {
    107106                        $where = preg_replace(
  • wordpress.org/public_html/wp-content/plugins/photo-directory/vendor/google/grpc-gcp/cloudprober/grpc_gpc_prober/spanner_probes.php

     
    246246
    247247function partition($client, &$metrics){
    248248        global $_DATABASE;
    249         global $_TEST_USERNAME;
    250249
    251250        $createSessionRequest = new Google\Cloud\Spanner\V1\CreateSessionRequest();
    252251        $createSessionRequest->setDatabase($_DATABASE);
  • wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php

     
    161161         * @static
    162162         */
    163163        public static function output_meta() {
    164                 global $wp_query;
    165164
    166165                $metas   = [];
    167166
  • wordpress.org/public_html/wp-content/plugins/plugin-directory/class-tools.php

     
    295295         * @return array         Array of WP_Post objects.
    296296         */
    297297        public static function get_support_rep_plugins( $user ) {
    298                 global $wpdb;
    299298
    300299                $user = new WP_User( $user );
    301300                if ( ! $user->exists() ) {
     
    564563         * @return array Array of \WP_User's who are subscribed.
    565564         */
    566565        public static function get_plugin_subscribers( $post, $include_committers = false ) {
    567                 global $wpdb;
    568566                $post = Plugin_Directory::get_plugin_post( $post );
    569567                if ( ! $post ) {
    570568                        return [];
  • wordpress.org/public_html/wp-content/plugins/theme-directory/rest-api/class-theme-review-stats.php

     
    332332                $rows       = $this->get_average_review_days( $start_date );
    333333                $out        = array();
    334334
    335                 global $wpdb;
    336 
    337335                foreach ( $rows as $value ) {
    338336                        $ym          = $value->ym;
    339337                        $review_days = round( floatval( $value->average_days_to_review ), 1 );
  • wordpress.org/public_html/wp-content/plugins/theme-directory/rest-api.php

     
    3434// The /themes/1.0/* endpoints are Serialized PHP output when requested directly.
    3535// Doesn't affect internal calls.
    3636add_filter( 'rest_pre_echo_response', function( $result ) {
    37         global $wp;
    3837
    3938        if ( defined( 'THEMES_API_VERSION' ) && '1.0' === THEMES_API_VERSION ) {
    4039                echo serialize( $result );
  • wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/cli/class-export-json.php

     
    9090                }
    9191
    9292                // Create JED json files for each JS file.
    93                 $plugin_json_files = $this->build_json_files( $gp_project, $gp_locale, $translation_set, $plugins, "{$export_dir}/plugins/{$textdomain}-{$gp_locale->wp_locale}" );
    94                 $theme_json_files  = $this->build_json_files( $gp_project, $gp_locale, $translation_set, $themes, "{$export_dir}/themes/{$textdomain}-{$gp_locale->wp_locale}" );
     93                $this->build_json_files( $gp_project, $gp_locale, $translation_set, $plugins, "{$export_dir}/plugins/{$textdomain}-{$gp_locale->wp_locale}" );
     94                $this->build_json_files( $gp_project, $gp_locale, $translation_set, $themes, "{$export_dir}/themes/{$textdomain}-{$gp_locale->wp_locale}" );
    9595
    9696                WP_CLI::success( "JSON Files for {$project_slug} {$locale} generated." );
    9797        }
  • wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/locale-projects.php

     
    2525                                        <select id="variant-selector" name="variant">
    2626                                                <?php
    2727                                                foreach ( $variants as $variant ) {
    28                                                         $selected =
    2928                                                        printf(
    3029                                                                '<option name="%s" data-project-url="%s"%s>%s</option>',
    3130                                                                $variant,