Make WordPress Core


Ignore:
Timestamp:
11/24/2020 09:25:46 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Upgrade more parameters in docblocks to used typed array notation.

See #51800, #41756

File:
1 edited

Legend:

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

    r49672 r49693  
    697697 *     @type bool   $echo      Whether or not to echo the return value. Default true.
    698698 * }
    699  * @return void|string|array Void if 'echo' argument is true, or on failure. Otherwise, tag cloud
    700  *                           as a string or an array, depending on 'format' argument.
     699 * @return void|string|string[] Void if 'echo' argument is true, or on failure. Otherwise, tag cloud
     700 *                              as a string or an array, depending on 'format' argument.
    701701 */
    702702function wp_tag_cloud( $args = '' ) {
     
    758758     * @since 2.3.0
    759759     *
    760      * @param string|array $return Tag cloud as a string or an array, depending on 'format' argument.
    761      * @param array        $args   An array of tag cloud arguments.
     760     * @param string|string[] $return Tag cloud as a string or an array, depending on 'format' argument.
     761     * @param array           $args   An array of tag cloud arguments.
    762762     */
    763763    $return = apply_filters( 'wp_tag_cloud', $return, $args );
     
    826826 *                                                0, 1, or their bool equivalents.
    827827 * }
    828  * @return string|array Tag cloud as a string or an array, depending on 'format' argument.
     828 * @return string|string[] Tag cloud as a string or an array, depending on 'format' argument.
    829829 */
    830830function wp_generate_tag_cloud( $tags, $args = '' ) {
     
    980980     * @since 4.3.0
    981981     *
    982      * @param array $tags_data An array of term data for term used to generate the tag cloud.
     982     * @param array[] $tags_data An array of term data arrays for terms used to generate the tag cloud.
    983983     */
    984984    $tags_data = apply_filters( 'wp_generate_tag_cloud_data', $tags_data );
     
    10311031         * @see wp_generate_tag_cloud()
    10321032         *
    1033          * @param array|string $return String containing the generated HTML tag cloud output
    1034          *                             or an array of tag links if the 'format' argument
    1035          *                             equals 'array'.
    1036          * @param WP_Term[]    $tags   An array of terms used in the tag cloud.
    1037          * @param array        $args   An array of wp_generate_tag_cloud() arguments.
     1033         * @param string[]|string $return String containing the generated HTML tag cloud output
     1034         *                                or an array of tag links if the 'format' argument
     1035         *                                equals 'array'.
     1036         * @param WP_Term[]       $tags   An array of terms used in the tag cloud.
     1037         * @param array           $args   An array of wp_generate_tag_cloud() arguments.
    10381038         */
    10391039        return apply_filters( 'wp_generate_tag_cloud', $return, $tags, $args );
Note: See TracChangeset for help on using the changeset viewer.