Opened 12 years ago
Closed 12 years ago
#24222 closed enhancement (fixed)
No need to define $matches when using preg_match and preg_match_all
Reported by: | kovshenin | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.6 | Priority: | low |
Severity: | minor | Version: | |
Component: | General | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Went through all the codebase in search of these (except external libraries), my findings are in 24222.diff.