[wp-trac] [WordPress Trac] #49351: wp_theme_editor_filetypes filter can not remove php and css file types

WordPress Trac noreply at wordpress.org
Mon Feb 3 08:17:10 UTC 2020


#49351: wp_theme_editor_filetypes filter can not remove php and css file types
----------------------------+-----------------------------
 Reporter:  mxp             |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Filesystem API  |    Version:  5.3.2
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 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!?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49351>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list