WordPress.org

Make WordPress Core

Opened 3 weeks ago

Last modified 3 weeks ago

#49351 new defect (bug)

wp_theme_editor_filetypes filter can not remove php and css file types

Reported by: mxp Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.3.2
Component: Themes Keywords:
Focuses: Cc:

Description

I don't know why wp_get_theme_file_editable_extensions this method need to ensure that default types will still there.

Sometimes just won't let people modify php files or other file types to avoid an unexpected issue. (including plugin editor)

btw, this wp_get_plugin_file_editable_extensions method do not have that restrict.

Maybe it's a bug!?

Change History (1)

#1 @SergeyBiryukov
3 weeks ago

  • Component changed from Filesystem API to Themes

Hi there, welcome back to WordPress Trac! Thanks for the report.

Just adding a link to the related changeset for some context: [35180] / #22924.

Last edited 3 weeks ago by SergeyBiryukov (previous) (diff)
Note: See TracTickets for help on using tickets.