From 5771dfbfa5b31ea59910e6f1fd46281c6765b72b Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 19 May 2014 06:34:01 +0000 Subject: [PATCH] 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 --- src/wp-includes/meta.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php index 680c622cbf..1b72ca317a 100644 --- a/src/wp-includes/meta.php +++ b/src/wp-includes/meta.php @@ -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 ) )