Make WordPress Core


Ignore:
Timestamp:
03/25/2018 06:09:56 PM (9 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/ms.php

    r42836 r42875  
    127127                 * @since MU (3.0.0)
    128128                 *
    129                  * @param array $tables  The site tables to be dropped.
    130                  * @param int   $blog_id The ID of the site to drop tables for.
     129                 * @param string[] $tables  Array of names of the site tables to be dropped.
     130                 * @param int      $blog_id The ID of the site to drop tables for.
    131131                 */
    132132                $drop_tables = apply_filters( 'wpmu_drop_tables', $tables, $blog_id );
    … …  
    666666         * @since MU (3.0.0)
    667667         *
    668          * @param array  $lang_codes Key/value pair of language codes where key is the short version.
    669          * @param string $code       A two-letter designation of the language.
     668         * @param string[] $lang_codes Array of key/value pairs of language codes where key is the short version.
     669         * @param string   $code       A two-letter designation of the language.
    670670         */
    671671        $lang_codes = apply_filters( 'lang_codes', $lang_codes, $code );
    … …  
    761761 * @since 3.0.0
    762762 *
    763  * @param array $lang_files Optional. An array of the language files. Default empty array.
    764  * @param string $current    Optional. The current language code. Default empty.
     763 * @param string[] $lang_files Optional. An array of the language files. Default empty array.
     764 * @param string   $current    Optional. The current language code. Default empty.
    765765 */
    766766function mu_dropdown_languages( $lang_files = array(), $current = '' ) {
    … …  
    797797         * @since MU (3.0.0)
    798798         *
    799          * @param array $output     HTML output of the dropdown.
    800          * @param array $lang_files Available language files.
    801          * @param string $current   The current language code.
     799         * @param string[] $output     Array of HTML output for the dropdown.
     800         * @param string[] $lang_files Array of available language files.
     801         * @param string   $current    The current language code.
    802802         */
    803803        $output = apply_filters( 'mu_dropdown_languages', $output, $lang_files, $current );
Note: See TracChangeset for help on using the changeset viewer.