Make WordPress Core

Opened 8 years ago

Closed 7 years ago

#13936 closed defect (bug) (fixed)

$wp_taxonomies should be cast as an array in /wp-admin/menu.php

Reported by: Viper007Bond Owned by:
Milestone: 3.1 Priority: lowest
Severity: minor Version:
Component: General Keywords: has-patch gsoc
Focuses: Cc:


Always best to cast variables to an array when running them through foreach(), otherwise you can get warnings (which I'm currently getting due to a plugin's usage of the file).

Attachments (1)

13936.diff (1.2 KB) - added by wojtek.szkutnik 8 years ago.

Download all attachments as: .zip

Change History (6)

#1 @Viper007Bond
8 years ago

I'm talking about this:

foreach ( $wp_taxonomies as $tax ) {

#2 @nacin
8 years ago

I'm thinking all direct references to $wp_taxonomies should be replaced with get_taxonomies().

#3 @wojtek.szkutnik
8 years ago

  • Cc wojtek.szkutnik@… added
  • Keywords has-patch gsoc added; needs-patch removed


#4 @nacin
8 years ago

  • Milestone changed from Awaiting Triage to 3.1

#5 @markjaquith
7 years ago

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

(In [16695]) Use get_taxonomies() when iterating taxonomies for menus. props wojtek.szkutnik. fixes #13936

Note: See TracTickets for help on using tickets.