Plugin editing for network admin. Props PeteMall. see #14435
git-svn-id: http://svn.automattic.com/wordpress/trunk@15853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
10532b9345
commit
022cdc5e6c
|
@ -18,6 +18,12 @@ $menu[99] = array( '', 'read', 'separator-last', '', 'wp-menu-separator-last' );
|
||||||
$compat = array();
|
$compat = array();
|
||||||
$submenu = array();
|
$submenu = array();
|
||||||
|
|
||||||
|
$submenu['plugins.php'][5] = array( __('Plugins'), 'manage_network_plugins', 'plugins.php' );
|
||||||
|
$submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' );
|
||||||
|
|
||||||
|
$submenu['themes.php'][5] = array( __('Themes'), 'manage_network_themes', 'themes.php' );
|
||||||
|
$submenu['themes.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_themes', 'theme-editor.php' );
|
||||||
|
|
||||||
require_once(ABSPATH . 'wp-admin/includes/menu.php');
|
require_once(ABSPATH . 'wp-admin/includes/menu.php');
|
||||||
|
|
||||||
?>
|
?>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
require_once( './admin.php' );
|
||||||
|
|
||||||
|
require( '../plugin-editor.php' );
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
require_once( './admin.php' );
|
||||||
|
|
||||||
|
require( '../theme-editor.php' );
|
|
@ -117,7 +117,7 @@ default:
|
||||||
'<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
|
'<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
|
||||||
);
|
);
|
||||||
|
|
||||||
require_once('./admin-header.php');
|
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
|
|
||||||
update_recently_edited(WP_PLUGIN_DIR . '/' . $file);
|
update_recently_edited(WP_PLUGIN_DIR . '/' . $file);
|
||||||
|
|
||||||
|
@ -252,4 +252,4 @@ jQuery(document).ready(function($){
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
include("./admin-footer.php");
|
include(ABSPATH . "wp-admin/admin-footer.php");
|
||||||
|
|
|
@ -93,7 +93,7 @@ break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
require_once('./admin-header.php');
|
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
|
|
||||||
update_recently_edited($file);
|
update_recently_edited($file);
|
||||||
|
|
||||||
|
@ -254,4 +254,4 @@ jQuery(document).ready(function($){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
include("./admin-footer.php");
|
include(ABSPATH . "wp-admin/admin-footer.php");
|
||||||
|
|
Loading…
Reference in New Issue