Changeset 18827 for trunk/wp-includes/kses.php
- Timestamp:
- 09/29/2011 10:57:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/kses.php
r18826 r18827 843 843 * 844 844 * The currently implemented checks are "maxlen", "minlen", "maxval", "minval" 845 * and "valueless" with even more checks to come soon.845 * and "valueless". 846 846 * 847 847 * @since 1.0.0 … … 888 888 889 889 case 'minval' : 890 # The minval check checksthat the attribute value is a positive integer,890 # The minval check makes sure that the attribute value is a positive integer, 891 891 # and that it is not smaller than the given value. 892 892 … … 898 898 899 899 case 'valueless' : 900 # The valueless check checksif the attribute has a value900 # The valueless check makes sure if the attribute has a value 901 901 # (like <a href="blah">) or not (<option selected>). If the given value 902 902 # is a "y" or a "Y", the attribute must not have a value. … … 955 955 * Strips slashes from in front of quotes. 956 956 * 957 * This function changes the character sequence \" to just". It leaves all957 * This function changes the character sequence \" to just ". It leaves all 958 958 * other slashes alone. It's really weird, but the quoting from 959 959 * preg_replace(//e) seems to require this. … … 962 962 * 963 963 * @param string $string String to strip slashes 964 * @return string Fixed string swith quoted slashes964 * @return string Fixed string with quoted slashes 965 965 */ 966 966 function wp_kses_stripslashes($string) { … … 1043 1043 * 1044 1044 * This function processes URL protocols, checks to see if they're in the 1045 * white -list or not, and returns different data depending on the answer.1045 * whitelist or not, and returns different data depending on the answer. 1046 1046 * 1047 1047 * @access private … … 1120 1120 * Callback for wp_kses_normalize_entities() regular expression. 1121 1121 * 1122 * This function helps wp_kses_normalize_entities() to only accept 16 1122 * This function helps wp_kses_normalize_entities() to only accept 16-bit values 1123 1123 * and nothing more for &#number; entities. 1124 1124 * … … 1167 1167 * 1168 1168 * @param int $i Unicode value 1169 * @return bool true if the value was a valid Unicode number1169 * @return bool True if the value was a valid Unicode number 1170 1170 */ 1171 1171 function valid_unicode($i) { … … 1343 1343 * 1344 1344 * First removes all of the Kses filters in case the current user does not need 1345 * to have Kses filter the content. If the user does not have unfiltered 1345 * to have Kses filter the content. If the user does not have unfiltered_html 1346 1346 * capability, then Kses filters are added. 1347 1347 *
Note: See TracChangeset
for help on using the changeset viewer.