Changeset 18843
- Timestamp:
- 09/30/2011 05:31:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update.php
r18632 r18843 83 83 84 84 function core_update_footer( $msg = '' ) { 85 if ( is_multisite() && !current_user_can('update_core') )86 return false;87 88 85 if ( !current_user_can('update_core') ) 89 86 return sprintf( __( 'Version %s' ), $GLOBALS['wp_version'] ); … … 141 138 // Called directly from dashboard 142 139 function update_right_now_message() { 143 if ( is_multisite() && !current_user_can('update_core') )144 return false;145 146 $cur = get_preferred_from_update_core();147 148 140 $msg = sprintf( __('You are using <span class="b">WordPress %s</span>.'), $GLOBALS['wp_version'] ); 149 141 150 if ( isset( $cur->response ) && $cur->response == 'upgrade' && current_user_can('update_core') ) { 151 $msg .= " <a href='" . network_admin_url( 'update-core.php' ) . "' class='button'>" . sprintf( __('Update to %s'), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a>'; 142 if ( current_user_can('update_core') ) { 143 $cur = get_preferred_from_update_core(); 144 145 if ( isset( $cur->response ) && $cur->response == 'upgrade' ) 146 $msg .= " <a href='" . network_admin_url( 'update-core.php' ) . "' class='button'>" . sprintf( __('Update to %s'), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a>'; 152 147 } 153 148
Note: See TracChangeset
for help on using the changeset viewer.