Ticket #6021 (new enhancement)

Opened 4 months ago

Last modified 4 months ago

Use the "@" modifier sparingly (or not at all).

Reported by: orlandu63 Assigned to: anonymous
Priority: lowest Milestone: 2.6
Component: Optimization Version: 2.3.3
Severity: trivial Keywords:
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

02/27/08 20:52:08 changed by orlandu63

  • version set to 2.3.3.
  • milestone changed from 2.3.4 to 2.7.

02/27/08 20:54:16 changed by orlandu63

  • milestone changed from 2.7 to 2.6.