Skip to content

Instantly share code, notes, and snippets.

@roddux
Created December 17, 2019 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roddux/7612285c3636260b1c156c40fe795f4e to your computer and use it in GitHub Desktop.
Save roddux/7612285c3636260b1c156c40fe795f4e to your computer and use it in GitHub Desktop.
WordPress patch to disable system.multicall
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