Ticket #13117: 13117-with-transient.patch
File 13117-with-transient.patch, 769 bytes (added by , 15 years ago) |
---|
-
menu.php
168 168 $submenu['plugins.php'][5] = array( __('Installed'), 'activate_plugins', 'plugins.php' ); 169 169 /* translators: add new plugin */ 170 170 $submenu['plugins.php'][10] = array(_x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php'); 171 $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' ); 171 172 $plugin_slugs = get_transient('plugin_slugs'); 173 if( !empty($plugin_slugs) ) 174 $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' ); 172 175 } 173 176 unset($menu_perms, $update_plugins, $update_count); 174 177