Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#17443 closed defect (bug) (fixed)

Passing by reference is not needed for admin_bar_menu action any longer

Reported by: hakre's profile hakre Owned by:
Milestone: 3.3 Priority: normal
Severity: normal Version: 3.2
Component: General Keywords: has-patch
Focuses: Cc:

Description

Passing by reference is not needed for admin_bar_menu action any longer.

Attachments (3)

17443.patch (482 bytes) - added by hakre 13 years ago.
switch to do_action.
17443.2.patch (1.4 KB) - added by hakre 13 years ago.
Some more related un-needed references.
17443.3.patch (1.7 KB) - added by hakre 13 years ago.
Useless to cast.

Download all attachments as: .zip

Change History (8)

@hakre
13 years ago

switch to do_action.

#1 @hakre
13 years ago

Related: #16767

#2 @hakre
13 years ago

The callbacks didn't expect a pass by reference already.

@hakre
13 years ago

Some more related un-needed references.

@hakre
13 years ago

Useless to cast.

#3 @hakre
13 years ago

Additionally there is no need to cast to an array as foreach does objects, see PHP 5 Object Iteration.

#4 @hakre
13 years ago

Related: #16661

#5 @ryan
13 years ago

  • Milestone changed from Awaiting Review to 3.3
  • Resolution set to fixed
  • Status changed from new to closed

Fixed during 3.3

Note: See TracTickets for help on using tickets.