WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/25/17 22:28:43 (3 months ago)
Author:
obenland
Message:

Menus: Add menu-$i slugs to mapping groups

Helps to future proof the feature.
Also orders slugs by popularity to optimize mapping time.

See #39692.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/nav-menu.php

    r41982 r42026  
    11251125     */ 
    11261126    $common_slug_groups = array( 
    1127         array( 'header', 'main', 'navigation', 'primary', 'top' ), 
    1128         array( 'bottom', 'footer', 'secondary', 'subsidiary' ), 
     1127        array( 'primary', 'menu-1', 'main', 'header', 'navigation', 'top' ), 
     1128        array( 'secondary', 'menu-2', 'footer', 'subsidiary', 'bottom' ), 
    11291129        array( 'social' ), 
    11301130    ); 
Note: See TracChangeset for help on using the changeset viewer.