[wp-trac] [WordPress Trac] #21767: Remove stripslashes from API functions
WordPress Trac
noreply at wordpress.org
Mon Feb 11 14:27:05 UTC 2013
#21767: Remove stripslashes from API functions
-------------------------------------------------+-------------------------
Reporter: alexkingorg | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.6
Component: Formatting | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-unit- |
tests 3.6-early |
-------------------------------------------------+-------------------------
Comment (by ryan):
WP_Widget::update_callback() already stripslashes_deep() $new_instance
before it is passed along to each widget's update() handlers. The handful
of places in default-widgets.php where stripslashes() is run in update()
seem to be holdovers from pre WP_Widget days. Removing them and changing
update_callback() to use wp_unslash().
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21767#comment:60>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list