Make WordPress Core

Changeset 31150


Ignore:
Timestamp:
01/11/2015 10:32:44 PM (10 years ago)
Author:
wonderboymusic
Message:

In WP_Comment_Query, only allow __call() to run against ->get_search_sql().

See #30891.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r31090 r31150  
    286286     */
    287287    public function __call( $name, $arguments ) {
    288         return call_user_func_array( array( $this, $name ), $arguments );
     288        if ( 'get_search_sql' === $name ) {
     289            return call_user_func_array( array( $this, $name ), $arguments );
     290        }
     291        return false;
    289292    }
    290293
Note: See TracChangeset for help on using the changeset viewer.