Fix docs for get_meta_sql(). First arg cannot be optional. props duck_, fixes #18717.

git-svn-id: http://svn.automattic.com/wordpress/trunk@18789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-09-27 05:13:07 +00:00
parent 83746331cf
commit cb21513a15
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 )