Make WordPress Core

#24893 closed defect (bug) (fixed)

Remove unused global $wpdb in admin-bar.php

Reported by: jeremyfelt Owned by: ocean90
Milestone: 3.7 Priority: normal
Severity: normal Version: 3.1
Component: Administration Keywords: has-patch
Focuses: Cc:


The function wp_admin_bar_my_sites_menu() in wp-includes/admin-bar.php has an unused global $wpdb that has been unused since the introduction of the file in [15671].

Attached patch removes the unused global.

Attachments (1)

24893.diff (429 bytes) - added by jeremyfelt 20 months ago.

Download all attachments as: .zip

Change History (3)

@jeremyfelt20 months ago

comment:1 @ocean9020 months ago

  • Milestone changed from Awaiting Review to 3.7
  • Priority changed from low to normal
  • Type changed from enhancement to defect (bug)

comment:2 @ocean9020 months ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from new to closed

In 24987:

Remove unused variable. props jeremyfelt. fixes #24893.

Note: See TracTickets for help on using tickets.