Making WordPress.org


Ignore:
Timestamp:
01/10/2024 02:02:13 AM (3 years ago)
Author:
dd32
Message:

Theme Directory: Always run theme check in English, as reviews take place in english.

Fixes #5896.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php

    r13083 r13100  
    10241024                }
    10251025
    1026                 // Run the checks.
     1026                // Run the checks, using US English.
     1027                $locale_switched = switch_to_locale( 'en_US' );
    10271028                $result = run_themechecks_against_theme( $this->theme, $this->theme_slug );
     1029                if ( $locale_switched ) {
     1030                        restore_previous_locale();
     1031                }
    10281032
    10291033                // Display the errors.
Note: See TracChangeset for help on using the changeset viewer.