Make WordPress Core


Ignore:
Timestamp:
11/03/2017 06:50:43 PM (6 years ago)
Author:
obenland
Message:

File Editors: Account for network admin use

Fixes a bug where files couldn't be accessed in multisite installs.

Props flixos90, westonruter.
Fixes #42420.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/misc.php

    r41928 r42115  
    334334                'theme' => rawurlencode( $stylesheet ),
    335335            ),
    336             admin_url( 'theme-editor.php' )
     336            self_admin_url( 'theme-editor.php' )
    337337        );
    338338        ?>
     
    422422                'plugin' => rawurlencode( $plugin ),
    423423            ),
    424             admin_url( 'plugin-editor.php' )
     424            self_admin_url( 'plugin-editor.php' )
    425425        );
    426426        ?>
Note: See TracChangeset for help on using the changeset viewer.