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

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 2 10:05:45 UTC 2012


#21767: Remove stripslashes from API functions
-------------------------------------------------+-------------------------
 Reporter:  alexkingorg                          |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  General                              |  Review
 Severity:  normal                               |     Version:  trunk
 Keywords:  has-patch needs-testing needs-unit-  |  Resolution:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by scribu):

 Introducing new, unslashed versions of functions, like wp_add_post_meta()
 and wp_update_post_meta(), doesn't seem like a scalable approach.

 Also, plugins that correctly call add_magic_quotes() before using the API,
 such as wp_insert_term(), will get extra slashes in their content.

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


More information about the wp-trac mailing list