[wp-trac] [WordPress Trac] #21767: Remove stripslashes from API functions
WordPress Trac
noreply at wordpress.org
Thu Jul 18 13:11:33 UTC 2013
#21767: Remove stripslashes from API functions
-------------------------------------------------+-------------------------
Reporter: alexkingorg | Owner:
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 3.6
Component: Formatting | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-unit- |
tests 3.6-early |
-------------------------------------------------+-------------------------
Changes (by koke):
* status: closed => reopened
* resolution: fixed =>
Comment:
Since the switch to wp_slash, XML-RPC fails to parse dates. From the error
log:
{{{
[18-Jul-2013 13:06:18 UTC] PHP Warning: addslashes() expects parameter 1
to be string, object given in /srv/apache/wptest/wpt/wp-
includes/formatting.php on line 3391
[18-Jul-2013 13:06:18 UTC] PHP Stack trace:
[18-Jul-2013 13:06:18 UTC] PHP 1. {main}()
/srv/apache/wptest/wpt/xmlrpc.php:0
[18-Jul-2013 13:06:18 UTC] PHP 2. wp_xmlrpc_server->serve_request()
/srv/apache/wptest/wpt/xmlrpc.php:69
[18-Jul-2013 13:06:18 UTC] PHP 3. IXR_Server->IXR_Server()
/srv/apache/wptest/wpt/wp-includes/class-wp-xmlrpc-server.php:133
[18-Jul-2013 13:06:18 UTC] PHP 4. IXR_Server->serve()
/srv/apache/wptest/wpt/wp-includes/class-IXR.php:364
[18-Jul-2013 13:06:18 UTC] PHP 5. IXR_Server->call()
/srv/apache/wptest/wpt/wp-includes/class-IXR.php:391
[18-Jul-2013 13:06:18 UTC] PHP 6. wp_xmlrpc_server->mw_newPost()
/srv/apache/wptest/wpt/wp-includes/class-IXR.php:441
[18-Jul-2013 13:06:18 UTC] PHP 7. wp_xmlrpc_server->escape()
/srv/apache/wptest/wpt/wp-includes/class-wp-xmlrpc-server.php:4039
[18-Jul-2013 13:06:18 UTC] PHP 8. wp_slash() /srv/apache/wptest/wpt/wp-
includes/class-wp-xmlrpc-server.php:227
[18-Jul-2013 13:06:18 UTC] PHP 9. addslashes() /srv/apache/wptest/wpt
/wp-includes/formatting.php:3391
}}}
Running trunk r24727
As a side effect of this, user-provided dates are ignored and posts that
should be scheduled are published immediately.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21767#comment:126>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list