Ticket #39542: 39542.0.diff
File 39542.0.diff, 3.4 KB (added by , 8 years ago) |
---|
-
wp-includes/kses.php
518 518 * 519 519 * @since 1.0.0 520 520 * 521 * @param string $string Content to filter through kses 522 * @param array $allowed_html List of allowed HTML elements 523 * @param array $allowed_protocols Optional. Allowed protocol in links. 521 * @param string $string Content to filter through kses. 522 * @param array|string $allowed_html List of allowed HTML elements or a string context 523 * accepted by wp_kses_allowed_html(). 524 * @param array $allowed_protocols Optional. Allowed protocol in links. 524 525 * @return string Filtered content with only allowed HTML elements 525 526 */ 526 527 function wp_kses( $string, $allowed_html, $allowed_protocols = array() ) { … … 707 708 * 708 709 * @since 1.0.0 709 710 * 710 * @global array $pass_allowed_html711 * @global array $pass_allowed_protocols711 * @global array|string $pass_allowed_html 712 * @global array $pass_allowed_protocols 712 713 * 713 * @param string $string Content to filter 714 * @param array $allowed_html Allowed HTML elements 715 * @param array $allowed_protocols Allowed protocols to keep 714 * @param string $string Content to filter 715 * @param array|string $allowed_html List of allowed HTML elements or a string context 716 * accepted by wp_kses_allowed_html(). 717 * @param array $allowed_protocols Allowed protocols to keep 716 718 * @return string Content with fixed HTML tags 717 719 */ 718 720 function wp_kses_split( $string, $allowed_html, $allowed_protocols ) { … … 728 730 * @since 3.1.0 729 731 * @access private 730 732 * 731 * @global array $pass_allowed_html732 * @global array $pass_allowed_protocols733 * @global array|string $pass_allowed_html 734 * @global array $pass_allowed_protocols 733 735 * 734 736 * @return string 735 737 */ … … 753 755 * @access private 754 756 * @since 1.0.0 755 757 * 756 * @param string $string Content to filter 757 * @param array $allowed_html Allowed HTML elements 758 * @param array $allowed_protocols Allowed protocols to keep 758 * @param string $string Content to filter 759 * @param array|string $allowed_html List of allowed HTML elements or a string context 760 * accepted by wp_kses_allowed_html(). 761 * @param array $allowed_protocols Allowed protocols to keep 759 762 * @return string Fixed HTML element 760 763 */ 761 764 function wp_kses_split2($string, $allowed_html, $allowed_protocols) { … … 812 815 * 813 816 * @since 1.0.0 814 817 * 815 * @param string $element HTML element/tag 816 * @param string $attr HTML attributes from HTML element to closing HTML element tag 817 * @param array $allowed_html Allowed HTML elements 818 * @param array $allowed_protocols Allowed protocols to keep 818 * @param string $element HTML element/tag 819 * @param string $attr HTML attributes from HTML element to closing HTML element tag 820 * @param array|string $allowed_html List of allowed HTML elements or a string context 821 * accepted by wp_kses_allowed_html(). 822 * @param array $allowed_protocols Allowed protocols to keep 819 823 * @return string Sanitized HTML element 820 824 */ 821 825 function wp_kses_attr($element, $attr, $allowed_html, $allowed_protocols) {