Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#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 5 years ago.

Download all attachments as: .zip

Change History (3)

5 years ago

#1 @ocean90
5 years ago

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

#2 @ocean90
5 years 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.