Make WordPress Core

Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#39316 closed defect (bug) (duplicate)

Plugin Editor not showing sub folders

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

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 10 years ago.
here is what I see for akismet
plugin.php.patch​ (1.4 KB ) - added by mattdevelop 10 years ago.
Here is a patch which can help solving this problem

Download all attachments as: .zip

Change History (6)

#1 @mattdevelop
10 years ago

  • Resolution → invalid
  • Status new → 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
10 years ago

  • Resolution invalid
  • Status closed → reopened

@mattdevelop
10 years ago

Here is a patch which can help solving this problem

#3 @WraithKenny
9 years ago

  • Resolution → duplicate
  • Status reopened → closed

Feel free to join us over on #6531 !

#4 @netweb
9 years ago

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