WordPress.org

Make WordPress Core

Opened 13 months ago

Closed 4 months ago

Last modified 3 months ago

#39316 closed defect (bug) (duplicate)

Plugin Editor not showing sub folders

Reported by: mattdevelop Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7
Component: Filesystem API Keywords:
Focuses: administration, performance Cc:

Description

In WP 4.7 plugin editor only shows files relative to plugin root folder. So, in my case if the plugin has 50 php files than only 2 of them are shown and I cannot fix an issue related to one of the installed plugins without having ftp access, looks like that problem comes from get_plugin_files() in wp-admin/includes/plugin.php which returns only files relative to the plugin root folder. I saw in trac that there are a lot of issue tickets about this bug but non of them has been solved yet.
see: https://core.trac.wordpress.org/browser/tags/4.7/src/wp-admin/includes/plugin.ihp#L191
In phpdoc it states that the function will return only List of files relative to the plugin room.

My local server environment
php version: 7.0.9
OS: windows 10
apache version: 2.4.23

Attachments (2)

Pasted image at 2016_12_17 03_37 PM.png (31.7 KB) - added by mattdevelop 13 months ago.
here is what I see for akismet
plugin.php.patch (1.4 KB) - added by mattdevelop 13 months ago.
Here is a patch which can help solving this problem

Download all attachments as: .zip

Change History (6)

@mattdevelop
13 months ago

here is what I see for akismet

#1 @mattdevelop
13 months ago

  • Resolution set to invalid
  • Status changed from new to closed

I'm sorry for akismet everything is correct, but in bigger plugins that have a lot of sub folders most of the files are not shown. for example Woocommerce has /includes folder which has 14 sub folders and each of them hav sub folders too, in this case I can see only files from /includes directory.

#2 @mattdevelop
13 months ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

@mattdevelop
13 months ago

Here is a patch which can help solving this problem

#3 @WraithKenny
4 months ago

  • Resolution set to duplicate
  • Status changed from reopened to closed

Feel free to join us over on #6531 !

#4 @netweb
3 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.