Opened 8 months ago
Closed 8 months ago
#22113 closed enhancement (fixed)
Checking for the 'wp' JavaScript variable could be simpler
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | General | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
In a few places we do this:
if ( typeof wp === 'undefined' )
var wp = {};
That could be simplified to a one liner that's easier to read:
window.wp = window.wp || {};
Attachments (1)
Change History (4)
comment:1
evansolomon — 8 months ago
- Keywords has-patch added
comment:2
koopersmith — 8 months ago
- Milestone changed from Awaiting Review to 3.5
- Version set to trunk
evansolomon — 8 months ago
comment:3
koopersmith — 8 months ago
- Owner set to koopersmith
- Resolution set to fixed
- Status changed from new to closed
In [22126]:
Note: See
TracTickets for help on using
tickets.

Nice patch.