Make WordPress Core


Ignore:
Timestamp:
12/06/2014 09:23:52 PM (10 years ago)
Author:
DrewAPicture
Message:

Convert various uses of (optional) in core parameter descriptions to use the style prescribed in the inline documentation standards for PHP.

The style for marking parameters optional in inline PHP docs is: @param type $var Optional. Description. Accepts. Default., where Accepts can be omitted on a case-by-case basis.

Props coffee2code.
Fixes #30591.

File:
1 edited

Legend:

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

    r30701 r30753  
    841841
    842842/**
    843  * Given a meta query, generates SQL clauses to be appended to a main query
     843 * Given a meta query, generates SQL clauses to be appended to a main query.
    844844 *
    845845 * @since 3.2.0
     
    847847 * @see WP_Meta_Query
    848848 *
    849  * @param array $meta_query A meta query
    850  * @param string $type Type of meta
    851  * @param string $primary_table
    852  * @param string $primary_id_column
    853  * @param object $context (optional) The main query object
    854  * @return array( 'join' => $join_sql, 'where' => $where_sql )
     849 * @param array $meta_query         A meta query.
     850 * @param string $type              Type of meta.
     851 * @param string $primary_table     Primary database table name.
     852 * @param string $primary_id_column Primary ID column name.
     853 * @param object $context           Optional. The main query object
     854 * @return array Associative array of `JOIN` and `WHERE` SQL.
    855855 */
    856856function get_meta_sql( $meta_query, $type, $primary_table, $primary_id_column, $context = null ) {
Note: See TracChangeset for help on using the changeset viewer.