Make WordPress Core

Ticket #62519: 62519.patch

File 62519.patch, 894 bytes (added by karthickmurugan, 6 months ago)

changing the order of function call

  • wp-includes/l10n.php

     
    13371337                return false;
    13381338        }
    13391339
    1340         $locale = determine_locale();
    1341         $path   = $wp_textdomain_registry->get( $domain, $locale );
    1342         if ( ! $path ) {
    1343                 return false;
    1344         }
    1345 
    13461340        if ( ! doing_action( 'after_setup_theme' ) && ! did_action( 'after_setup_theme' ) ) {
    13471341                _doing_it_wrong(
    13481342                        __FUNCTION__,
     
    13561350                );
    13571351        }
    13581352
     1353        $locale = determine_locale();
     1354        $path   = $wp_textdomain_registry->get( $domain, $locale );
     1355        if ( ! $path ) {
     1356                return false;
     1357        }
     1358
    13591359        // Themes with their language directory outside of WP_LANG_DIR have a different file name.
    13601360        $template_directory   = trailingslashit( get_template_directory() );
    13611361        $stylesheet_directory = trailingslashit( get_stylesheet_directory() );