Make WordPress Core

Changeset 18789


Ignore:
Timestamp:
09/27/2011 05:13:07 AM (13 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/meta.php

    r18597 r18789  
    587587 * @see WP_Meta_Query
    588588 *
    589  * @param array (optional) $meta_query A meta query
     589 * @param array $meta_query A meta query
    590590 * @param string $type Type of meta
    591591 * @param string $primary_table
     
    594594 * @return array( 'join' => $join_sql, 'where' => $where_sql )
    595595 */
    596 function get_meta_sql( $meta_query = false, $type, $primary_table, $primary_id_column, $context = null ) {
     596function get_meta_sql( $meta_query, $type, $primary_table, $primary_id_column, $context = null ) {
    597597    $meta_query_obj = new WP_Meta_Query( $meta_query );
    598598    return $meta_query_obj->get_sql( $type, $primary_table, $primary_id_column, $context );
     
    634634     * Constructor
    635635     *
    636      * @param array (optional) $meta_query A meta query
     636     * @param array $meta_query (optional) A meta query
    637637     */
    638638    function __construct( $meta_query = false ) {
Note: See TracChangeset for help on using the changeset viewer.