[wp-trac] [WordPress Trac] #42396: question about wp_kses - is that correct?
WordPress Trac
noreply at wordpress.org
Wed Nov 1 09:40:21 UTC 2017
#42396: question about wp_kses - is that correct?
--------------------------+-----------------------------
Reporter: tazotodua | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
wp-includes\kses.php, there is:
{{{
function wp_kses_split( $string, $allowed_html, $allowed_protocols ) {
global $pass_allowed_html, $pass_allowed_protocols;
$pass_allowed_html = $allowed_html;
$pass_allowed_protocols = $allowed_protocols;
return preg_replace_callback(
'%(<!--.*?(-->|$))|(<[^>]*(>|$)|>)%', '_wp_kses_split_callback', $string
);
}
}}}
before the return, there are variables, which are not used anywhere inside
that function, is that correct?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42396>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list