WordPress.org

Make WordPress Core

Ticket #14435: 14435.6.diff

File 14435.6.diff, 1.4 KB (added by PeteMall, 4 years ago)

Adds plugin editor to the network admin screen.

  • plugin-editor.php

     
    117117                '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    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); 
    123123 
     
    252252<?php 
    253253        break; 
    254254} 
    255 include("./admin-footer.php"); 
     255include(ABSPATH . "wp-admin/admin-footer.php"); 
  • network/plugin-editor.php

     
     1<?php 
     2 
     3require_once( './admin.php' ); 
     4 
     5require( '../plugin-editor.php' ); 
     6 No newline at end of file 
  • network/menu.php

     
    1818$compat = array(); 
    1919$submenu = array(); 
    2020 
     21$submenu['plugins.php'][5]  = array( __('Plugins'), 'activate_plugins', 'plugins.php' ); 
     22$submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' ); 
     23 
    2124require_once(ABSPATH . 'wp-admin/includes/menu.php'); 
    2225 
    2326?> 
     27 No newline at end of file