Make WordPress Core

Ticket #39542: 39542.0.diff

File 39542.0.diff, 3.4 KB (added by Christian1012, 8 years ago)
  • wp-includes/kses.php

     
    518518 *
    519519 * @since 1.0.0
    520520 *
    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.
    524525 * @return string Filtered content with only allowed HTML elements
    525526 */
    526527function wp_kses( $string, $allowed_html, $allowed_protocols = array() ) {
     
    707708 *
    708709 * @since 1.0.0
    709710 *
    710  * @global array $pass_allowed_html
    711  * @global array $pass_allowed_protocols
     711 * @global array|string $pass_allowed_html
     712 * @global array        $pass_allowed_protocols
    712713 *
    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
    716718 * @return string Content with fixed HTML tags
    717719 */
    718720function wp_kses_split( $string, $allowed_html, $allowed_protocols ) {
     
    728730 * @since 3.1.0
    729731 * @access private
    730732 *
    731  * @global array $pass_allowed_html
    732  * @global array $pass_allowed_protocols
     733 * @global array|string $pass_allowed_html
     734 * @global array        $pass_allowed_protocols
    733735 *
    734736 * @return string
    735737 */
     
    753755 * @access private
    754756 * @since 1.0.0
    755757 *
    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
    759762 * @return string Fixed HTML element
    760763 */
    761764function wp_kses_split2($string, $allowed_html, $allowed_protocols) {
     
    812815 *
    813816 * @since 1.0.0
    814817 *
    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
    819823 * @return string Sanitized HTML element
    820824 */
    821825function wp_kses_attr($element, $attr, $allowed_html, $allowed_protocols) {