Make WordPress Core


Ignore:
Timestamp:
01/05/2012 08:50:54 PM (13 years ago)
Author:
ryan
Message:

User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302

File:
1 edited

Legend:

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

    r19593 r19687  
    764764                    $working = 1;
    765765                    $mode = 0;
    766                     if(FALSE === array_key_exists($attrname, $attrarr)) {
     766                    if(false === array_key_exists($attrname, $attrarr)) {
    767767                        $attrarr[$attrname] = array ('name' => $attrname, 'value' => '', 'whole' => $attrname, 'vless' => 'y');
    768768                    }
     
    781781                        $thisval = wp_kses_bad_protocol($thisval, $allowed_protocols);
    782782
    783                     if(FALSE === array_key_exists($attrname, $attrarr)) {
     783                    if(false === array_key_exists($attrname, $attrarr)) {
    784784                        $attrarr[$attrname] = array ('name' => $attrname, 'value' => $thisval, 'whole' => "$attrname=\"$thisval\"", 'vless' => 'n');
    785785                    }
     
    797797                        $thisval = wp_kses_bad_protocol($thisval, $allowed_protocols);
    798798
    799                     if(FALSE === array_key_exists($attrname, $attrarr)) {
     799                    if(false === array_key_exists($attrname, $attrarr)) {
    800800                        $attrarr[$attrname] = array ('name' => $attrname, 'value' => $thisval, 'whole' => "$attrname='$thisval'", 'vless' => 'n');
    801801                    }
     
    813813                        $thisval = wp_kses_bad_protocol($thisval, $allowed_protocols);
    814814
    815                     if(FALSE === array_key_exists($attrname, $attrarr)) {
     815                    if(false === array_key_exists($attrname, $attrarr)) {
    816816                        $attrarr[$attrname] = array ('name' => $attrname, 'value' => $thisval, 'whole' => "$attrname=\"$thisval\"", 'vless' => 'n');
    817817                    }
     
    832832    } # while
    833833
    834     if ($mode == 1 && FALSE === array_key_exists($attrname, $attrarr))
     834    if ($mode == 1 && false === array_key_exists($attrname, $attrarr))
    835835        # special case, for when the attribute list ends with a valueless
    836836        # attribute like "selected"
     
    939939
    940940/**
    941  * Removes any NULL characters in $string.
     941 * Removes any null characters in $string.
    942942 *
    943943 * @since 1.0.0
Note: See TracChangeset for help on using the changeset viewer.