Make WordPress Core


Ignore:
Timestamp:
06/25/2017 10:15:18 PM (7 years ago)
Author:
DrewAPicture
Message:

Docs: Adjust notation for the $context parameter in the DocBlocks for the wp_kses_allowed_html() function and its associated wp_kses_allowed_html filter.

$context|$allowedtags can be either a string or array.

Props bor0.
Fixes #40575.

File:
1 edited

Legend:

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

    r40637 r40950  
    616616 * @global array $allowedentitynames
    617617 *
    618  * @param string $context The context for which to retrieve tags.
    619  *                        Allowed values are post, strip, data,entities, or
    620  *                        the name of a field filter such as pre_user_description.
     618 * @param string|array $context The context for which to retrieve tags.
     619 *                              Allowed values are post, strip, data, entities, or
     620 *                              the name of a field filter such as pre_user_description.
    621621 * @return array List of allowed tags and their allowed attributes.
    622622 */
     
    630630         * @since 3.5.0
    631631         *
    632          * @param string $tags    Allowed tags, attributes, and/or entities.
    633          * @param string $context Context to judge allowed tags by. Allowed values are 'post',
    634          *                        'data', 'strip', 'entities', 'explicit', or the name of a filter.
     632         * @param array  $context      Context to judge allowed tags by.
     633         * @param string $context_type Context type (explicit).
    635634         */
    636635        return apply_filters( 'wp_kses_allowed_html', $context, 'explicit' );
Note: See TracChangeset for help on using the changeset viewer.