Make WordPress Core

Ticket #4869: 4869.diff

File 4869.diff, 551 bytes (added by johnbillion, 17 years ago)

Only display core update notification to users with the switch_themes capability

  • wp-admin/includes/update.php

     
    3535<div id="update-nag"><?php printf( __('Update Available! <a href="%s">Please upgrade now</a>.'), $cur->url ); ?></div>
    3636<?php
    3737}
    38 add_action( 'admin_notices', 'update_nag', 3 );
     38if ( current_user_can('switch_themes') )
     39        add_action( 'admin_notices', 'update_nag', 3 );
    3940
    4041function wp_update_plugins() {
    4142        global $wp_version;