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

WordPress Trac noreply at wordpress.org
Mon Jan 21 17:59:51 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):

 Unit test failures:

 {{{
 1) Tests_Meta::test_metadata_slashes
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -'Testsingleslash'
 +'Test\singleslash'

 /Users/ryan/Projects/unit-tests/trunk/tests/meta.php:134

 2) Tests_Post_Meta::test_update_meta
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -''quote and \slash'
 +'\'quote and \\slash'

 /Users/ryan/Projects/unit-tests/trunk/tests/post/meta.php:222

 3) Tests_XMLRPC_wp_editPost::test_edit_custom_fields
 Failed asserting that stdClass Object (
     'meta_id' => '14097'
     'post_id' => '14085'
     'meta_key' => 'custom_field_to_delete'
     'meta_value' => '12345678'
 ) is false.

 /Users/ryan/Projects/unit-tests/trunk/tests/xmlrpc/wp/editPost.php:194
 }}}

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


More information about the wp-trac mailing list