Changeset 48971
- Timestamp:
- 09/12/2020 12:10:16 AM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-plugin-upgrader.php
r48734 r48971 407 407 * 408 408 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. 409 * @global string $wp_version The WordPress version string. 409 410 * 410 411 * @param string $source The path to the downloaded package source. … … 413 414 */ 414 415 public function check_package( $source ) { 415 global $wp_filesystem ;416 global $wp_filesystem, $wp_version; 416 417 417 418 $this->new_plugin_data = array(); … … 460 461 /* translators: 1: Current WordPress version, 2: Version required by the uploaded plugin. */ 461 462 __( 'Your WordPress version is %1$s, however the uploaded plugin requires %2$s.' ), 462 $ GLOBALS['wp_version'],463 $wp_version, 463 464 $requires_wp 464 465 ); -
trunk/src/wp-admin/includes/class-theme-upgrader.php
r48734 r48971 520 520 * 521 521 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. 522 * @global string $wp_version The WordPress version string. 522 523 * 523 524 * @param string $source The full path to the package source. … … 525 526 */ 526 527 public function check_package( $source ) { 527 global $wp_filesystem ;528 global $wp_filesystem, $wp_version; 528 529 529 530 $this->new_theme_data = array(); … … 607 608 /* translators: 1: Current WordPress version, 2: Version required by the uploaded theme. */ 608 609 __( 'Your WordPress version is %1$s, however the uploaded theme requires %2$s.' ), 609 $ GLOBALS['wp_version'],610 $wp_version, 610 611 $requires_wp 611 612 ); -
trunk/src/wp-includes/default-constants.php
r48372 r48971 17 17 */ 18 18 function wp_initial_constants() { 19 global $blog_id ;19 global $blog_id, $wp_version; 20 20 21 21 /**#@+ … … 100 100 // non-concatenated scripts and stylesheets. 101 101 if ( ! defined( 'SCRIPT_DEBUG' ) ) { 102 if ( ! empty( $ GLOBALS['wp_version']) ) {103 $develop_src = false !== strpos( $ GLOBALS['wp_version'], '-src' );102 if ( ! empty( $wp_version ) ) { 103 $develop_src = false !== strpos( $wp_version, '-src' ); 104 104 } else { 105 105 $develop_src = false;
Note: See TracChangeset
for help on using the changeset viewer.