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 ) )