Add missing access modifiers to methods in `WP_Meta_Query`.
See #27881, #22234. Built from https://develop.svn.wordpress.org/trunk@28522 git-svn-id: http://core.svn.wordpress.org/trunk@28348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
821246b4ae
commit
b539c1cd76
|
@ -847,7 +847,7 @@ class WP_Meta_Query {
|
||||||
*
|
*
|
||||||
* @param array $meta_query (optional) A meta query
|
* @param array $meta_query (optional) A meta query
|
||||||
*/
|
*/
|
||||||
function __construct( $meta_query = false ) {
|
public function __construct( $meta_query = false ) {
|
||||||
if ( !$meta_query )
|
if ( !$meta_query )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -875,7 +875,7 @@ class WP_Meta_Query {
|
||||||
*
|
*
|
||||||
* @param array $qv The query variables
|
* @param array $qv The query variables
|
||||||
*/
|
*/
|
||||||
function parse_query_vars( $qv ) {
|
public function parse_query_vars( $qv ) {
|
||||||
$meta_query = array();
|
$meta_query = array();
|
||||||
|
|
||||||
// Simple query needs to be first for orderby=meta_value to work correctly
|
// 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
|
* @param string $type MySQL type to cast meta_value
|
||||||
* @return string MySQL type
|
* @return string MySQL type
|
||||||
*/
|
*/
|
||||||
function get_cast_for_type( $type = '' ) {
|
public function get_cast_for_type( $type = '' ) {
|
||||||
if ( empty( $type ) )
|
if ( empty( $type ) )
|
||||||
return 'CHAR';
|
return 'CHAR';
|
||||||
|
|
||||||
|
@ -930,7 +930,7 @@ class WP_Meta_Query {
|
||||||
* @param object $context (optional) The main query object
|
* @param object $context (optional) The main query object
|
||||||
* @return array( 'join' => $join_sql, 'where' => $where_sql )
|
* @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;
|
global $wpdb;
|
||||||
|
|
||||||
if ( ! $meta_table = _get_meta_table( $type ) )
|
if ( ! $meta_table = _get_meta_table( $type ) )
|
||||||
|
|
Loading…
Reference in New Issue