Opened 2 years ago

Closed 17 months 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:

Description

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

Attachments (3)

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

Download all attachments as: .zip

Change History (8)

hakre2 years ago

switch to do_action.

Related: #16767

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

hakre2 years ago

Some more related un-needed references.

hakre2 years ago

Useless to cast.

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

Related: #16661

  • 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.