[wp-trac] [WordPress Trac] #21767: Remove stripslashes from API functions

WordPress Trac noreply at wordpress.org
Sat Feb 16 08:40:02 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 scribu):

 I'm getting extra slashes too now. Here's what my plugin is doing, in a
 nutshell:

 {{{
 $value = $_POST['my_plugin'];

 $value = wp_filter_kses( $value );

 update_post_meta( $post_id, 'my_plugin', $value );
 }}}

 `foo'` becomes `foo\'` becomes `foo\\\\\\\'` etc.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21767#comment:76>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list