Making WordPress.org

Ticket #6646: 6646.patch

File 6646.patch, 3.0 KB (added by upadalavipul, 2 years ago)
  • 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/inc/cli/class-mass-create-sets.php

     
    2020         * : Project path to copy to.
    2121         */
    2222        public function __invoke( $args, $assoc_args ) {
    23                 global $wpdb;
    2423
    2524                $src  = $args[0];
    2625                $dest = $args[1];
  • wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/cli/class-stats.php

     
    236236         * @return void
    237237         */
    238238        private function print_wordpress_translation_percentage(): void {
    239                 global $wpdb;
    240239                $core_total  = $this->get_core_total();
    241240                $core_100    = $this->get_core_full_translated();
    242241                $core_95_100 = $this->get_core_interval( 100, 95 );
  • wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc/routes/class-locale.php

     
    920920         * @return array List of favorited items, eg [ 'wp-themes/twentyten', 'wp-themes/twentyeleven' ]
    921921         */
    922922        function get_user_favorites( $project_slug = false ) {
    923                 global $wpdb;
    924923
    925924                if ( ! is_user_logged_in() ) {
    926925                        return array();