Make WordPress Core

Changeset 15853


Ignore:
Timestamp:
10/19/2010 06:23:23 PM (14 years ago)
Author:
ryan
Message:

Plugin editing for network admin. Props PeteMall. see #14435

Location:
trunk/wp-admin
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/menu.php

    r15716 r15853  
    1919$submenu = array();
    2020
     21$submenu['plugins.php'][5]  = array( __('Plugins'), 'manage_network_plugins', 'plugins.php' );
     22$submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' );
     23
     24$submenu['themes.php'][5]  = array( __('Themes'), 'manage_network_themes', 'themes.php' );
     25$submenu['themes.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_themes', 'theme-editor.php' );
     26
    2127require_once(ABSPATH . 'wp-admin/includes/menu.php');
    2228
  • trunk/wp-admin/plugin-editor.php

    r15132 r15853  
    118118    );
    119119
    120     require_once('./admin-header.php');
     120    require_once(ABSPATH . 'wp-admin/admin-header.php');
    121121
    122122    update_recently_edited(WP_PLUGIN_DIR . '/' . $file);
     
    253253    break;
    254254}
    255 include("./admin-footer.php");
     255include(ABSPATH . "wp-admin/admin-footer.php");
  • trunk/wp-admin/theme-editor.php

    r15699 r15853  
    9494default:
    9595
    96     require_once('./admin-header.php');
     96    require_once(ABSPATH . 'wp-admin/admin-header.php');
    9797
    9898    update_recently_edited($file);
     
    255255}
    256256
    257 include("./admin-footer.php");
     257include(ABSPATH . "wp-admin/admin-footer.php");
Note: See TracChangeset for help on using the changeset viewer.