WordPress.org

Make WordPress Core

Changeset 31149


Ignore:
Timestamp:
01/11/2015 10:30:26 PM (5 years ago)
Author:
wonderboymusic
Message:

In wp_xmlrpc_server, only allow __call() to run against ->_multisite_getUsersBlogs().

See #30891.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r31126 r31149  
    162162     */
    163163    public function __call( $name, $arguments ) {
    164         return call_user_func_array( array( $this, $name ), $arguments );
     164        if ( '_multisite_getUsersBlogs' === $name ) {
     165            return call_user_func_array( array( $this, $name ), $arguments );
     166        }
     167        return false;
    165168    }
    166169
Note: See TracChangeset for help on using the changeset viewer.