Make WordPress Core


Ignore:
Timestamp:
03/25/2018 06:09:56 PM (7 years ago)
Author:
johnbillion
Message:

Docs: Document more parameters and properties using typed array notation.

See #41756

File:
1 edited

Legend:

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

    r42836 r42875  
    23942394 * @global wpdb  $wpdb
    23952395 *
    2396  * @param string|array $queries Optional. The query to run. Can be multiple queries
    2397  *                              in an array, or a string of queries separated by
    2398  *                              semicolons. Default empty.
    2399  * @param bool         $execute Optional. Whether or not to execute the query right away.
    2400  *                              Default true.
     2396 * @param string[]|string $queries Optional. The query to run. Can be multiple queries
     2397 *                                 in an array, or a string of queries separated by
     2398 *                                 semicolons. Default empty string.
     2399 * @param bool            $execute Optional. Whether or not to execute the query right away.
     2400 *                                 Default true.
    24012401 * @return array Strings containing the results of the various update queries.
    24022402 */
     
    24192419     * @since 3.3.0
    24202420     *
    2421      * @param array $queries An array of dbDelta SQL queries.
     2421     * @param string[] $queries An array of dbDelta SQL queries.
    24222422     */
    24232423    $queries = apply_filters( 'dbdelta_queries', $queries );
     
    24502450     * @since 3.3.0
    24512451     *
    2452      * @param array $cqueries An array of dbDelta create SQL queries.
     2452     * @param string[] $cqueries An array of dbDelta create SQL queries.
    24532453     */
    24542454    $cqueries = apply_filters( 'dbdelta_create_queries', $cqueries );
     
    24612461     * @since 3.3.0
    24622462     *
    2463      * @param array $iqueries An array of dbDelta insert or update SQL queries.
     2463     * @param string[] $iqueries An array of dbDelta insert or update SQL queries.
    24642464     */
    24652465    $iqueries = apply_filters( 'dbdelta_insert_queries', $iqueries );
Note: See TracChangeset for help on using the changeset viewer.