[wp-trac] [WordPress Trac] #21622: Validate or sandbox theme file edits before saving them (as is done for plugins)

WordPress Trac noreply at wordpress.org
Thu Oct 5 13:46:50 UTC 2017


#21622: Validate or sandbox theme file edits before saving them (as is done for
plugins)
--------------------------------------------+-----------------------------
 Reporter:  eschwartz93                     |       Owner:  westonruter
     Type:  enhancement                     |      Status:  closed
 Priority:  high                            |   Milestone:  4.9
Component:  Themes                          |     Version:  2.7.1
 Severity:  normal                          |  Resolution:  fixed
 Keywords:  has-patch needs-testing commit  |     Focuses:  administration
--------------------------------------------+-----------------------------

Comment (by adamsilverstein):

 > @adamsilverstein The nonce and cap checks are handled inside of
 `wp_edit_theme_plugin_file()`. Per the comment

 @westonruter Ah thanks, I see that now,  I was expecting the typical
 pattern of seeing these checks at the beginning of the callback and missed
 the comment line.

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


More information about the wp-trac mailing list