WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (11 months ago)
Author:
johnbillion
Message:

Docs: Promote many bool types to true or false where only that value is used.

See #51800

File:
1 edited

Legend:

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

    r49304 r49927  
    4040 * @since 1.2.0
    4141 *
    42  * @var array[]|bool Array of default allowable HTML tags, or false to use the defaults.
     42 * @var array[]|false Array of default allowable HTML tags, or false to use the defaults.
    4343 */
    4444if ( ! defined( 'CUSTOM_TAGS' ) ) {
     
    14121412 *
    14131413 * @param string $element HTML element.
    1414  * @return array|bool List of attributes found in the element. Returns false on failure.
     1414 * @return array|false List of attributes found in the element. Returns false on failure.
    14151415 */
    14161416function wp_kses_attr_parse( $element ) {
     
    14631463 *
    14641464 * @param string $attr Attribute list from HTML element to closing HTML element tag.
    1465  * @return array|bool List of attributes found in $attr. Returns false on failure.
     1465 * @return array|false List of attributes found in $attr. Returns false on failure.
    14661466 */
    14671467function wp_kses_hair_parse( $attr ) {
Note: See TracChangeset for help on using the changeset viewer.