WordPress.org

Make WordPress Core

Changeset 14113


Ignore:
Timestamp:
04/16/2010 05:44:38 PM (8 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

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r14112 r14113  
    10081008    if ( is_array($hidden) ) {
    10091009        $hidden = array_diff( $hidden, array('submitdiv', 'linksubmitdiv', 'manage-menu', 'create-menu') ); // postboxes that are always shown
    1010         update_user_option($user->ID, "meta-box-hidden_$page", $hidden, true);
     1010        update_user_option($user->ID, "metaboxhidden_$page", $hidden, true);
    10111011    }
    10121012
  • 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()
  • trunk/wp-admin/includes/template.php

    r14099 r14113  
    29682968        $screen = convert_to_screen($screen);
    29692969
    2970     $hidden = get_user_option( "meta-box-hidden_$screen->id" );
     2970    $hidden = get_user_option( "metaboxhidden_$screen->id" );
    29712971
    29722972    // Hide slug boxes by default
Note: See TracChangeset for help on using the changeset viewer.