Add missing access modifiers to methods in WP_Meta_Query
.
See #27881, #22234. git-svn-id: https://develop.svn.wordpress.org/trunk@28522 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
77c6420969
commit
5771dfbfa5
@ -847,7 +847,7 @@ class WP_Meta_Query {
|
||||
*
|
||||
* @param array $meta_query (optional) A meta query
|
||||
*/
|
||||
function __construct( $meta_query = false ) {
|
||||
public function __construct( $meta_query = false ) {
|
||||
if ( !$meta_query )
|
||||
return;
|
||||
|
||||
@ -875,7 +875,7 @@ class WP_Meta_Query {
|
||||
*
|
||||
* @param array $qv The query variables
|
||||
*/
|
||||
function parse_query_vars( $qv ) {
|
||||
public function parse_query_vars( $qv ) {
|
||||
$meta_query = array();
|
||||
|
||||
// Simple query needs to be first for orderby=meta_value to work correctly
|
||||
@ -903,7 +903,7 @@ class WP_Meta_Query {
|
||||
* @param string $type MySQL type to cast meta_value
|
||||
* @return string MySQL type
|
||||
*/
|
||||
function get_cast_for_type( $type = '' ) {
|
||||
public function get_cast_for_type( $type = '' ) {
|
||||
if ( empty( $type ) )
|
||||
return 'CHAR';
|
||||
|
||||
@ -930,7 +930,7 @@ class WP_Meta_Query {
|
||||
* @param object $context (optional) The main query object
|
||||
* @return array( 'join' => $join_sql, 'where' => $where_sql )
|
||||
*/
|
||||
function get_sql( $type, $primary_table, $primary_id_column, $context = null ) {
|
||||
public function get_sql( $type, $primary_table, $primary_id_column, $context = null ) {
|
||||
global $wpdb;
|
||||
|
||||
if ( ! $meta_table = _get_meta_table( $type ) )
|
||||
|
Loading…
Reference in New Issue
Block a user