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:
Andrew Nacin 2011-09-27 05:13:07 +00:00
parent 319264bd0d
commit e0889f848c
1 changed files with 3 additions and 3 deletions

View File

@ -586,14 +586,14 @@ function update_meta_cache($meta_type, $object_ids) {
*
* @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 $primary_table
* @param string $primary_id_column
* @param object $context (optional) The main query object
* @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 );
return $meta_query_obj->get_sql( $type, $primary_table, $primary_id_column, $context );
}
@ -633,7 +633,7 @@ class WP_Meta_Query {
/**
* Constructor
*
* @param array (optional) $meta_query A meta query
* @param array $meta_query (optional) A meta query
*/
function __construct( $meta_query = false ) {
if ( !$meta_query )