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

WordPress Trac noreply at wordpress.org
Sat Feb 16 19:59:14 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 nacin):

 Replying to [comment:78 alexkingorg]:
 > Replying to [comment:76 scribu]:
 > > I'm getting extra slashes too now
 >
 > This situation is why I have advocated for new `wp_update_postmeta()`
 and `wp_insert_postmeta()` API methods (and included them in my original
 patch). The `update/insert_postmeta()` calls have too much existing
 documentation that show passing the $_POST data directly in as a value.


 We did add new wp_update_postmeta() and wp_add_post_meta() functions (the
 previous ones did not have the wp_ prefix), in [23416]. scribu, though,
 was using the lower update_metadata() directly, which was changed from
 expecting slashed data to expected unslashed data.

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


More information about the wp-trac mailing list