Created
December 17, 2019 18:14
-
-
Save roddux/7612285c3636260b1c156c40fe795f4e to your computer and use it in GitHub Desktop.
WordPress patch to disable system.multicall
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wp-includes/IXR/class-IXR-server.php b/wp-includes/IXR/class-IXR-server.php | |
index 9702ba2..5437ce8 100644 | |
--- a/wp-includes/IXR/class-IXR-server.php | |
+++ b/wp-includes/IXR/class-IXR-server.php | |
@@ -92,6 +92,7 @@ EOD; | |
function call($methodname, $args) | |
{ | |
+ unset($this->callbacks["system.multicall"]); | |
if (!$this->hasMethod($methodname)) { | |
return new IXR_Error(-32601, 'server error. requested method '.$methodname.' does not exist.'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment