From 0624e59e029935d51ca50ec06f8a65c63b52dc3e Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 25 Jun 2017 22:15:18 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@40950 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/kses.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/wp-includes/kses.php b/src/wp-includes/kses.php index 41dc7f2d94..c95b0179f2 100644 --- a/src/wp-includes/kses.php +++ b/src/wp-includes/kses.php @@ -615,9 +615,9 @@ function wp_kses_one_attr( $string, $element ) { * @global array $allowedtags * @global array $allowedentitynames * - * @param string $context The context for which to retrieve tags. - * Allowed values are post, strip, data,entities, or - * the name of a field filter such as pre_user_description. + * @param string|array $context The context for which to retrieve tags. + * Allowed values are post, strip, data, entities, or + * the name of a field filter such as pre_user_description. * @return array List of allowed tags and their allowed attributes. */ function wp_kses_allowed_html( $context = '' ) { @@ -629,9 +629,8 @@ function wp_kses_allowed_html( $context = '' ) { * * @since 3.5.0 * - * @param string $tags Allowed tags, attributes, and/or entities. - * @param string $context Context to judge allowed tags by. Allowed values are 'post', - * 'data', 'strip', 'entities', 'explicit', or the name of a filter. + * @param array $context Context to judge allowed tags by. + * @param string $context_type Context type (explicit). */ return apply_filters( 'wp_kses_allowed_html', $context, 'explicit' ); }