WordPress.org

Make WordPress Core

Ticket #4869: 4869-footer.diff

File 4869-footer.diff, 496 bytes (added by johnbillion, 7 years ago)

Apply same logic for the admin footer

  • wp-admin/includes/update.php

     
    33// The admin side of our 1.0 update system 
    44 
    55function core_update_footer( $msg ) { 
     6        if ( !current_user_can('switch_themes') ) 
     7                return sprintf( __( '| Version %s' ), $GLOBALS['wp_version'] ); 
     8 
    69        $cur = get_option( 'update_core' ); 
    710         
    811        if ( ! isset( $cur->response ) )