WordPress.org

Make WordPress Core

Opened 5 weeks ago

Last modified 5 weeks ago

#47544 new enhancement

Code Editor not listing files/folders in the right order

Reported by: superpoincare Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 5.2.1
Component: Administration Keywords: reporter-feedback
Focuses: Cc:

Description

On new installations on test sites, I have seen the correct order for listing of files/folders in the code editor.

ie:

  • important files
  • folders
  • files in the root.

However, in my installation, I don't get the same order.

Example screenshot attached.

https://i.imgur.com/MSaqTUc.png

readme.txt and composer.json should be lower in the list.

Change History (2)

#1 @SergeyBiryukov
5 weeks ago

  • Keywords reporter-feedback added

Thanks for the report!

Looking at get_plugin_files() used to display the tree, the default order is:

  • The main plugin file.
  • The rest of the files, in alphabetical order.

This appears to match what I'm seeing on a clean install:

query-monitor.php
assets 
classes 
collectors 
composer.json 
dispatchers 
output 
readme.txt 
wp-content 

Does the issue still happen with all plugins disabled and a default theme activated?

#24049 is a related ticket, but I can't reproduce that one either in current trunk, appears to be fixed in [41806].

#2 @superpoincare
5 weeks ago

I am getting

query-monitor.php
assets (folder)
classes (folder)
collectors (folder)
dispatchers (folder)
output (folder)
wp-content (folder)
composer.json
readme.txt

on the Sandbox test site on a clean install.

Which seems different from yours but seems most natural but different from yours.

On my personal site, I used the health check plugin and entered the troubleshoot mode, but still am getting the same result as the screenshot.

Note: See TracTickets for help on using tickets.