Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#17443 closed defect (bug) (fixed)

Passing by reference is not needed for admin_bar_menu action any longer

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

Description

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

Attachments (3)

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

Download all attachments as: .zip

Change History (8)

@hakre
15 years ago

switch to do_action.

#1 @hakre
15 years ago

Related: #16767

#2 @hakre
15 years ago

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

@hakre
15 years ago

Some more related un-needed references.

@hakre
15 years ago

Useless to cast.

#3 @hakre
15 years ago

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

#4 @hakre
15 years ago

Related: #16661

#5 @ryan
15 years ago

  • Milestone Awaiting Review3.3
  • Resolutionfixed
  • Status newclosed

Fixed during 3.3

Note: See TracTickets for help on using tickets.