WordPress.org

Make WordPress Core

Ticket #14591: menu-fix.patch

File menu-fix.patch, 651 bytes (added by t31os_, 4 years ago)

Fix page query arg order for page taxonomies in menu.php, fixes non-active page taxonomy submenu items.

  • wp-admin/menu.php

     
    9797                if ( ! $tax->show_ui || ! in_array('page', (array) $tax->object_type, true) ) 
    9898                        continue; 
    9999 
    100                 $submenu['edit.php?post_type=page'][$i++] = array( esc_attr( $tax->labels->name ), $tax->cap->manage_terms, 'edit-tags.php?post_type=page&taxonomy=' . $tax->name ); 
     100                $submenu['edit.php?post_type=page'][$i++] = array( esc_attr( $tax->labels->name ), $tax->cap->manage_terms, 'edit-tags.php?taxonomy=' . $tax->name . '&post_type=page' ); 
    101101        } 
    102102        unset($tax); 
    103103