#6021 closed enhancement (invalid)
Use the "@" modifier sparingly (or not at all).
Reported by: | orlandu63 | Owned by: | jacobsantos |
---|---|---|---|
Milestone: | Priority: | lowest | |
Severity: | trivial | Version: | 2.3.3 |
Component: | Optimization | Keywords: | |
Focuses: | Cc: |
Description
The "@" error-control operator should be avoided. It is slow.
In /wp-includes/script-loader.php you can use array_pad(func_get_args(), 4, null) to achieve the same effect (and save a few CPU cycles). I just noticed this while browsing recent changesets, so I'm sure there are more potential @-replacements out there.
Change History (5)
Note: See
TracTickets for help on using
tickets.
It is difficult to go through and correct all of the instances where '@' is used, because sometimes it is used to prevent warnings that can't be checked before hand.