#6021 closed enhancement (invalid)
Use the "@" modifier sparingly (or not at all).
| Reported by: | orlandu63 | Owned by: | jacobsantos |
|---|---|---|---|
| Priority: | lowest | Milestone: | |
| Component: | Optimization | Version: | 2.3.3 |
| Severity: | trivial | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.