Fix docs for get_meta_sql(). First arg cannot be optional. props duck_, fixes #18717.
git-svn-id: https://develop.svn.wordpress.org/trunk@18789 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
319264bd0d
commit
e0889f848c
@ -586,14 +586,14 @@ function update_meta_cache($meta_type, $object_ids) {
|
|||||||
*
|
*
|
||||||
* @see WP_Meta_Query
|
* @see WP_Meta_Query
|
||||||
*
|
*
|
||||||
* @param array (optional) $meta_query A meta query
|
* @param array $meta_query A meta query
|
||||||
* @param string $type Type of meta
|
* @param string $type Type of meta
|
||||||
* @param string $primary_table
|
* @param string $primary_table
|
||||||
* @param string $primary_id_column
|
* @param string $primary_id_column
|
||||||
* @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_meta_sql( $meta_query = false, $type, $primary_table, $primary_id_column, $context = null ) {
|
function get_meta_sql( $meta_query, $type, $primary_table, $primary_id_column, $context = null ) {
|
||||||
$meta_query_obj = new WP_Meta_Query( $meta_query );
|
$meta_query_obj = new WP_Meta_Query( $meta_query );
|
||||||
return $meta_query_obj->get_sql( $type, $primary_table, $primary_id_column, $context );
|
return $meta_query_obj->get_sql( $type, $primary_table, $primary_id_column, $context );
|
||||||
}
|
}
|
||||||
@ -633,7 +633,7 @@ class WP_Meta_Query {
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param array (optional) $meta_query A meta query
|
* @param array $meta_query (optional) A meta query
|
||||||
*/
|
*/
|
||||||
function __construct( $meta_query = false ) {
|
function __construct( $meta_query = false ) {
|
||||||
if ( !$meta_query )
|
if ( !$meta_query )
|
||||||
|
Loading…
Reference in New Issue
Block a user