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

WordPress Trac noreply at wordpress.org
Wed Oct 14 23:58:42 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 commit  |     Focuses:
------------------------------+-----------------------------

Comment (by DrewAPicture):

 @SergeyBiryukov: [attachment:22924.5.diff]:

 * Removes txt type per your patch
 * `$theme` is a `WP_Theme` object
 * DRYs the base list of types
 * Adds an `array_unique()` around the merge

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


More information about the wp-trac mailing list