[wp-trac] [WordPress Trac] #16325: kses uses deprecated (PHP 5.3.0) split
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 2 20:08:25 UTC 2011
#16325: kses uses deprecated (PHP 5.3.0) split
--------------------------+------------------------------
Reporter: duck_ | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by aaroncampbell):
As a quick note, these are different:
{{{
list($domain, $video_id) = split(".com/", $url);
list($domain, $video_id) = explode(".com/", $url);
}}}
Technically in split (being a POSIX Regex) the . is a single-character
wildcard. I actually think that the way explode works is what was
intended for this particular bit of code, but I thought I'd point it out.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16325#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list