WordPress / plugin-check

A repository for the new Plugin Check plugin from the WordPress Performance and Plugins Team.
https://wordpress.org/plugins/plugin-check/
GNU General Public License v2.0
195 stars 39 forks source link

Incorrect edit link in single file plugin #412

Closed ernilambar closed 4 months ago

ernilambar commented 5 months ago

Edit Link View in code editor is not correct for single file plugin. Clicking in the link takes to an inaccessible page with error Sorry, that file cannot be edited.

Eg:

/plugin-editor.php?plugin=hello.php&file=plugins%2Fhello.php&line=49

file parameter is not supposed to have plugins here. It should be hello.php only.