[wp-trac] [WordPress Trac] #42420: Links in file lists in theme/plugin editors don't work in network admin

WordPress Trac noreply at wordpress.org
Thu Nov 2 17:14:29 UTC 2017


#42420: Links in file lists in theme/plugin editors don't work in network admin
------------------------------------+------------------------
 Reporter:  westonruter             |       Owner:  obenland
     Type:  defect (bug)            |      Status:  reviewing
 Priority:  normal                  |   Milestone:  4.9
Component:  General                 |     Version:  trunk
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  multisite
------------------------------------+------------------------
Changes (by westonruter):

 * keywords:   => has-patch dev-feedback
 * owner:   => obenland
 * status:  new => reviewing


Comment:

 4.8.3 just has `theme-editor.php?…` as the URL without any path:
 https://github.com/WordPress/wordpress-
 develop/blob/32f78b0ff7c10654058f5572917548253c6492fc/src/wp-admin/theme-
 editor.php#L246

 Whereas in 4.9 there is the `wp_print_theme_file_tree()` function which
 does `admin_url( 'theme-editor.php' )`: https://github.com/WordPress
 /wordpress-develop/blob/d6aece2a336225e239798e99f163b30e2e9d8874/src/wp-
 admin/includes/misc.php#L336

 [attachment:42420.0.diff] merely replaces `admin_url( 'theme-editor.php'
 )` with `theme-editor.php`, and similarly for the plugin editor.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42420#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list