diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-07-04 15:20:27 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-07-04 15:20:27 +0000 |
commit | b7f49ba2b09704054013e87bdddca4ac085bcb43 (patch) | |
tree | 0fbcf5e88a4c7989d53ac42ecc6efa590e1ae1d0 /wp-admin/includes/update.php | |
parent | 3cd5175fd9627e8fdd282377bc4ca990e02f39a6 (diff) | |
download | wordpress-mu-b7f49ba2b09704054013e87bdddca4ac085bcb43.tar.gz wordpress-mu-b7f49ba2b09704054013e87bdddca4ac085bcb43.tar.xz wordpress-mu-b7f49ba2b09704054013e87bdddca4ac085bcb43.zip |
Enable checking of plugin versions. Not mu-plugins. props Christopher
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1352 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/includes/update.php')
-rw-r--r-- | wp-admin/includes/update.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index d17298f..72ad33e 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -53,10 +53,14 @@ function update_right_now_message() { echo "<span id='wp-version-message'>$msg</span>"; } +*/ function wp_update_plugins() { global $wp_version; + if( !is_site_admin() ) + return; + if ( !function_exists('fsockopen') ) return false; @@ -120,6 +124,9 @@ function wp_update_plugins() { add_action( 'load-plugins.php', 'wp_update_plugins' ); function wp_plugin_update_row( $file, $plugin_data ) { + if( !is_site_admin() ) + return; + $current = get_option( 'update_plugins' ); if ( !isset( $current->response[ $file ] ) ) return false; @@ -140,6 +147,8 @@ add_action( 'after_plugin_row', 'wp_plugin_update_row', 10, 2 ); function wp_update_plugin($plugin, $feedback = '') { global $wp_filesystem; + if( !is_site_admin() ) + return; if ( !empty($feedback) ) add_filter('update_feedback', $feedback); @@ -252,5 +261,4 @@ function wp_update_plugin($plugin, $feedback = '') { return $folder . '/' . $pluginfiles[0]; } -*/ ?> |