Ticket #25667: 25667.diff
| File 25667.diff, 2.6 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/includes/class-wp-upgrader.php
2293 2293 $body = array(); 2294 2294 $failures = 0; 2295 2295 2296 $body[] = 'WordPress site: ' . network_home_url( '/' ); 2296 $home_url = network_home_url( '/' ); 2297 $body[] = sprintf( __( 'WordPress site: ' ), $home_url ); 2297 2298 2298 2299 // Core 2299 2300 if ( isset( $this->update_results['core'] ) ) { 2300 2301 $result = $this->update_results['core'][0]; 2301 2302 if ( $result->result && ! is_wp_error( $result->result ) ) { 2302 $body[] = sprintf( 'SUCCESS: WordPress was successfully updated to %s', $result->name );2303 $body[] = sprintf( __( 'SUCCESS: WordPress was successfully updated to %s' ), $result->name ); 2303 2304 } else { 2304 $body[] = sprintf( 'FAILED: WordPress failed to update to %s', $result->name );2305 $body[] = sprintf( __( 'FAILED: WordPress failed to update to %s' ), $result->name ); 2305 2306 $failures++; 2306 2307 } 2307 2308 $body[] = ''; … … 2331 2332 } 2332 2333 2333 2334 if ( $failures ) { 2334 $body [] = '';2335 $body[] = 'BETA TESTING?'; 2336 $body[] = '============='; 2337 $body[] = ''; 2338 $body[] = 'This debugging email is sent when you are using a development version of WordPress.'; 2339 $body[] = ''; 2340 $body[] = 'If you think these failures might be due to a bug in WordPress, could you report it?'; 2341 $body[] = ' * Open a thread in the support forums: http://wordpress.org/support/forum/alphabeta'; 2342 $body[] = " * Or, if you're comfortable writing a bug report: http://core.trac.wordpress.org/"; 2343 $body[] = ''; 2344 $body[] = 'Thanks! -- The WordPress Team';2345 $body[] = ''; 2346 $subject = sprintf( '[%s] There were failures during background updates', get_bloginfo( 'name' ) );2335 $body = __( ' 2336 BETA TESTING? 2337 ============= 2338 2339 This debugging email is sent when you are using a development version of WordPress. 2340 2341 If you think these failures might be due to a bug in WordPress, could you report it? 2342 * Open a thread in the support forums: http://wordpress.org/support/forum/alphabeta 2343 * Or, if you\'re comfortable writing a bug report: http://core.trac.wordpress.org/ 2344 2345 Thanks! -- The WordPress Team' ); 2346 2347 $subject = sprintf( __( '[%s] There were failures during background updates' ), get_bloginfo( 'name' ) ); 2347 2348 } else { 2348 $subject = sprintf( '[%s] Background updates have finished', get_bloginfo( 'name' ) );2349 $subject = sprintf( __( '[%s] Background updates have finished' ), get_bloginfo( 'name' ) ); 2349 2350 } 2350 2351 2351 $body[] = 'UPDATE LOG';2352 $body[] = __( 'UPDATE LOG' ); 2352 2353 $body[] = '=========='; 2353 2354 $body[] = ''; 2354 2355