Making WordPress.org

Changeset 5483


Ignore:
Timestamp:
05/05/2017 04:38:44 PM (7 years ago)
Author:
ocean90
Message:

Plugin Directory: Use an empty array for an allowed HTML tag without any attributes.

wp_kses_attr() uses a count() == 0 check to decide whether additional checks for attributes should be performed. Since count( true ) returns 1 the condition was always false.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-parser.php

    r5397 r5483  
    467467            ),
    468468            'blockquote' => array(
    469                 'cite' => true
     469                'cite' => true,
    470470            ),
    471             'br'         => true,
    472             'p'          => true,
    473             'code'       => true,
    474             'pre'        => true,
    475             'em'         => true,
    476             'strong'     => true,
    477             'ul'         => true,
    478             'ol'         => true,
    479             'dl'         => true,
    480             'dt'         => true,
    481             'dd'         => true,
    482             'li'         => true,
    483             'h3'         => true,
    484             'h4'         => true,
     471            'br'         => array(),
     472            'p'          => array(),
     473            'code'       => array(),
     474            'pre'        => array(),
     475            'em'         => array(),
     476            'strong'     => array(),
     477            'ul'         => array(),
     478            'ol'         => array(),
     479            'dl'         => array(),
     480            'dt'         => array(),
     481            'dd'         => array(),
     482            'li'         => array(),
     483            'h3'         => array(),
     484            'h4'         => array(),
    485485        );
    486486
Note: See TracChangeset for help on using the changeset viewer.