Ticket #28875: 28875.patch
File 28875.patch, 2.9 KB (added by , 11 years ago) |
---|
-
src/wp-includes/load.php
752 752 * @global $wp_locale The WordPress date and time locale object. 753 753 */ 754 754 function wp_load_translations_early() { 755 global $text_direction, $wp_locale ;755 global $text_direction, $wp_locale, $wp_local_package; 756 756 757 757 static $loaded = false; 758 758 if ( $loaded ) … … 762 762 if ( function_exists( 'did_action' ) && did_action( 'init' ) ) 763 763 return; 764 764 765 // We need $wp_local_package766 require ABSPATH . WPINC . '/version.php';767 768 765 // Translation and localization 769 766 require_once ABSPATH . WPINC . '/pomo/mo.php'; 770 767 require_once ABSPATH . WPINC . '/l10n.php'; -
src/wp-includes/script-loader.php
48 48 * @param object $scripts WP_Scripts object. 49 49 */ 50 50 function wp_default_scripts( &$scripts ) { 51 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version51 global $wp_version; 52 52 53 53 $develop_src = false !== strpos( $wp_version, '-src' ); 54 54 … … 563 563 * @param object $styles 564 564 */ 565 565 function wp_default_styles( &$styles ) { 566 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version566 global $wp_version; 567 567 568 568 if ( ! defined( 'SCRIPT_DEBUG' ) ) 569 569 define( 'SCRIPT_DEBUG', false !== strpos( $wp_version, '-src' ) ); -
src/wp-includes/update.php
24 24 if ( defined('WP_INSTALLING') ) 25 25 return; 26 26 27 global $wpdb, $wp_local_package; 28 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version 27 global $wpdb, $wp_local_package, $wp_version; 29 28 $php_version = phpversion(); 30 29 31 30 $current = get_site_transient( 'update_core' ); … … 183 182 * @return mixed Returns null if update is unsupported. Returns false if check is too soon. 184 183 */ 185 184 function wp_update_plugins( $extra_stats = array() ) { 186 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version185 global $wp_version; 187 186 188 187 if ( defined('WP_INSTALLING') ) 189 188 return false; … … 329 328 * @return mixed Returns null if update is unsupported. Returns false if check is too soon. 330 329 */ 331 330 function wp_update_themes( $extra_stats = array() ) { 332 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version331 global $wp_version; 333 332 334 333 if ( defined( 'WP_INSTALLING' ) ) 335 334 return false; … … 564 563 } 565 564 566 565 function _maybe_update_core() { 567 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version566 global $wp_version; 568 567 569 568 $current = get_site_transient( 'update_core' ); 570 569