[wp-trac] [WordPress Trac] #22924: Add filter to theme editor accepted files

WordPress Trac noreply at wordpress.org
Wed Oct 14 19:09:31 UTC 2015


#22924: Add filter to theme editor accepted files
-------------------------+-----------------------------
 Reporter:  pross        |       Owner:  wonderboymusic
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  4.4
Component:  Themes       |     Version:  3.5
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:11 DrewAPicture]:
 > The problem is that with this hook name it implies ''filetypes'' not
 files. So if the intention is to actually filter file types, something
 closer to my solution in comment:9 would probably be better-suited.

 [attachment:22924.2.diff] implements comment:9. `php` and `css` cannot be
 removed, only new types can be added.

 One issue with both [35134] and the patch is that new files are added
 under "Styles" heading, which doesn't make sense (see
 [attachment:22924.png], where I've added `txt` as an example).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22924#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list