Make WordPress Core


Ignore:
Timestamp:
04/16/2010 05:44:38 PM (14 years ago)
Author:
ryan
Message:

Change meta-box-hidden to metaboxhidden to adjust for new key sanitization rules and maintain the same key name as 2.9. fixes #13032

File:
1 edited

Legend:

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

    r14048 r14113  
    1919    global $wp_meta_boxes;
    2020
    21     if ( !get_user_option( 'meta-box-hidden_nav-menus' ) && is_array($wp_meta_boxes) ) {
     21    if ( !get_user_option( 'metaboxhidden_nav-menus' ) && is_array($wp_meta_boxes) ) {
    2222
    2323        $initial_meta_boxes = array( 'manage-menu', 'create-menu', 'add-custom-links', 'add-page', 'add-category' );
     
    3636        }
    3737        $user = wp_get_current_user();
    38         update_user_meta( $user->ID, 'meta-box-hidden_nav-menus', $hidden_meta_boxes );
     38        update_user_meta( $user->ID, 'metaboxhidden_nav-menus', $hidden_meta_boxes );
    3939
    4040        // returns all the hidden metaboxes to the js function: wpNavMenu.initial_meta_boxes()
Note: See TracChangeset for help on using the changeset viewer.