[wp-trac] [WordPress Trac] #27746: 3.8.2 Regression: XML-RPC fails with erroneous disabled status
WordPress Trac
noreply at wordpress.org
Thu Apr 10 04:39:57 UTC 2014
#27746: 3.8.2 Regression: XML-RPC fails with erroneous disabled status
--------------------------+-----------------------------
Reporter: redsweater | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Some users are noticing that the use of 3rd party apps such as the
official WordPress app, MarsEdit, etc., are failing because the server is
reporting that XML-RPC services are disabled:
https://wordpress.org/support/topic/xml-rpc-services-disabled?replies=10
It traced the problem to documentation changes made here:
https://core.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=27730%40trunk%2Fsrc
%2Fwp-includes%2Fclass-wp-xmlrpc-server.php&old=27554%40trunk%2Fsrc%2Fwp-
includes%2Fclass-wp-xmlrpc-server.php&sfp_email=&sfph_mail=
The changes starting at line 194 add multiple lines to what was previously
a 1 line statement following an unbracketed if statement. The result is
the line following the comment is now executed unconditionally:
$enabled = apply_filters( 'option_enable_xmlrpc', true );
I suspect the case being encountered by users in the forum thread is one
where "option_enable"xmlrpc" is filtering to false but the filter should
not even be reached by the intended logic.
Adding braces around the (now commented) single line seems to address the
issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27746>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list