From a4f27c25bc86483491959ccbb364cfccff4d6f8d Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Fri, 3 Nov 2017 18:50:43 +0000 Subject: [PATCH] File Editors: Account for network admin use Fixes a bug where files couldn't be accessed in multisite installs. Props flixos90, westonruter. Fixes #42420. git-svn-id: https://develop.svn.wordpress.org/trunk@42115 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/misc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/misc.php b/src/wp-admin/includes/misc.php index 7b2301a2a9..7f5952c895 100644 --- a/src/wp-admin/includes/misc.php +++ b/src/wp-admin/includes/misc.php @@ -333,7 +333,7 @@ function wp_print_theme_file_tree( $tree, $level = 2, $size = 1, $index = 1 ) { 'file' => rawurlencode( $tree ), 'theme' => rawurlencode( $stylesheet ), ), - admin_url( 'theme-editor.php' ) + self_admin_url( 'theme-editor.php' ) ); ?>
  • @@ -421,7 +421,7 @@ function wp_print_plugin_file_tree( $tree, $label = '', $level = 2, $size = 1, $ 'file' => rawurlencode( $tree ), 'plugin' => rawurlencode( $plugin ), ), - admin_url( 'plugin-editor.php' ) + self_admin_url( 'plugin-editor.php' ) ); ?>