Ticket #35721: 35721.2.patch
File 35721.2.patch, 1.3 KB (added by , 9 years ago) |
---|
-
wp-admin/includes/update.php
230 230 if ( ! isset( $cur->response ) || $cur->response != 'upgrade' ) 231 231 return false; 232 232 233 $msg = sprintf( 234 /* translators: %s: New WordPress version */ 235 __( '<a href="%1$s">WordPress %2$s</a> is available!' ), 236 esc_url( sprintf( __( 'https://codex.wordpress.org/Version_%s' ), $cur->current ) ), 237 $cur->current 238 ); 239 233 240 if ( current_user_can('update_core') ) { 234 $msg = sprintf( __( '<a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! <a href="%2$s" aria-label="Please update WordPress now">Please update now</a>.' ), $cur->current, network_admin_url( 'update-core.php' ) );241 $msg .= ' <a href="' . network_admin_url( 'update-core.php' ) . '" aria-label="' . __( 'Please update WordPress now' ) . '">' . __( 'Please update now' ) . '</a>.'; 235 242 } else { 236 $msg = sprintf( __('<a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! Please notify the site administrator.'), $cur->current);243 $msg .= ' ' . __( 'Please notify the site administrator.' ); 237 244 } 245 238 246 echo "<div class='update-nag'>$msg</div>"; 239 247 } 240 248