WordPress.org

Make WordPress Core

Ticket #16828: nav-menu.php.diff.patch

File nav-menu.php.diff.patch, 645 bytes (added by layotte, 8 years ago)

proposed fix

  • nav-menu.php

     
    424424        if ( get_user_option( 'metaboxhidden_nav-menus' ) !== false || ! is_array($wp_meta_boxes) )
    425425                return;
    426426
    427         $initial_meta_boxes = array( 'nav-menu-theme-locations', 'add-page', 'add-custom-links', 'add-category' );
     427        $initial_meta_boxes = apply_filters( 'initial_meta_boxes', array( 'nav-menu-theme-locations', 'add-page', 'add-custom-links', 'add-category' ) );
    428428        $hidden_meta_boxes = array();
    429429
    430430        foreach ( array_keys($wp_meta_boxes['nav-menus']) as $context ) {