Ticket #31046: 31046.diff
File 31046.diff, 1.3 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/update.php
function core_update_footer( $msg = '' ) 191 191 192 192 if ( ! isset( $cur->current ) ) 193 193 $cur->current = ''; 194 194 195 195 if ( ! isset( $cur->url ) ) 196 196 $cur->url = ''; 197 197 198 198 if ( ! isset( $cur->response ) ) 199 199 $cur->response = ''; 200 200 201 201 switch ( $cur->response ) { 202 202 case 'development' : 203 203 return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ) ); 204 204 205 205 case 'upgrade' : 206 return sprintf( '<strong>' .__( '<a href="%1$s">Get Version %2$s</a>' ).'</strong>', network_admin_url( 'update-core.php' ), $cur->current);206 return sprintf( '<strong>' . __( 'Version %1$s. Please <a href="%2$s">update to %3$s</a>.' ) . '</strong>', get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ), $cur->current ); 207 207 208 208 case 'latest' : 209 209 default : 210 210 return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) ); 211 211 } 212 212 } 213 213 214 214 /** 215 215 * 216 216 * @global string $pagenow 217 217 * @return false|void 218 218 */ 219 219 function update_nag() { 220 220 if ( is_multisite() && !current_user_can('update_core') ) 221 221 return false;