[wp-trac] [WordPress Trac] #24222: No need to define $matches when using preg_match and preg_match_all
WordPress Trac
noreply at wordpress.org
Mon Apr 29 12:46:23 UTC 2013
#24222: No need to define $matches when using preg_match and preg_match_all
-------------------------+-----------------------------
Reporter: kovshenin | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: Awaiting Review
Component: General | Version:
Severity: minor | Keywords:
-------------------------+-----------------------------
I noticed that some of the new code in 3.6, especially around post
formats, defines an empty `$matches` variable when using `preg_match` and
`preg_match_all`. This is not required and we don't do it in a lot of
other places in core.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24222>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list