Changeset 1352

Show
Ignore:
Timestamp:
07/04/08 15:20:27 (2 months ago)
Author:
donncha
Message:

Enable checking of plugin versions. Not mu-plugins. props Christopher

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/update.php

    r1328 r1352  
    5454        echo "<span id='wp-version-message'>$msg</span>"; 
    5555} 
     56*/ 
    5657 
    5758function wp_update_plugins() { 
    5859        global $wp_version; 
     60 
     61        if( !is_site_admin() ) 
     62                return; 
    5963 
    6064        if ( !function_exists('fsockopen') ) 
     
    121125 
    122126function wp_plugin_update_row( $file, $plugin_data ) { 
     127        if( !is_site_admin() ) 
     128                return; 
     129 
    123130        $current = get_option( 'update_plugins' ); 
    124131        if ( !isset( $current->response[ $file ] ) ) 
     
    141148function wp_update_plugin($plugin, $feedback = '') { 
    142149        global $wp_filesystem; 
     150        if( !is_site_admin() ) 
     151                return; 
    143152 
    144153        if ( !empty($feedback) ) 
     
    253262} 
    254263 
    255 */ 
    256264?>