Don't call get_plugins() in menu.php. It is too slow to call on every admin page load. fixes #13117

git-svn-id: https://develop.svn.wordpress.org/trunk@14299 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-04-29 16:38:12 +00:00
parent cbe8327f39
commit 616f48e89d
2 changed files with 3 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ wp_admin_css( 'theme-editor' );
$plugins = get_plugins();
if( empty($plugins) )
if ( empty($plugins) )
wp_die( __('There are no plugins installed on this site.') );
if ( isset($_REQUEST['file']) )