- Timestamp:
- 08/31/2016 05:48:49 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-automatic-updater.php
r38307 r38459 372 372 * @since 3.7.0 373 373 * @access public 374 *375 * @global wpdb $wpdb376 * @global string $wp_version377 374 */ 378 375 public function run() { 379 global $wpdb, $wp_version;380 381 376 if ( $this->is_disabled() ) 382 377 return; … … 458 453 // Send debugging email to all development installs. 459 454 if ( ! empty( $this->update_results ) ) { 460 $development_version = false !== strpos( $wp_version, '-' );455 $development_version = false !== strpos( get_bloginfo( 'version' ), '-' ); 461 456 462 457 /** … … 495 490 * @access protected 496 491 * 497 * @global string $wp_version498 *499 492 * @param object $update_result The result of the core update. Includes the update offer and result. 500 493 */ 501 494 protected function after_core_update( $update_result ) { 502 global $wp_version;495 $wp_version = get_bloginfo( 'version' ); 503 496 504 497 $core_update = $update_result->item; … … 585 578 * @access protected 586 579 * 587 * @global string $wp_version588 *589 580 * @param string $type The type of email to send. Can be one of 'success', 'fail', 'manual', 'critical'. 590 581 * @param object $core_update The update offer that was attempted. … … 723 714 if ( 'critical' == $type && is_wp_error( $result ) ) { 724 715 $body .= "\n***\n\n"; 725 $body .= sprintf( __( 'Your site was running version %s.' ), $GLOBALS['wp_version']);716 $body .= sprintf( __( 'Your site was running version %s.' ), get_bloginfo( 'version' ) ); 726 717 $body .= ' ' . __( 'We have some data that describes the error your site encountered.' ); 727 718 $body .= ' ' . __( 'Your hosting company, support forum volunteers, or a friendly developer may be able to use this information to help you:' );
Note: See TracChangeset
for help on using the changeset viewer.