WordPress.org

Make WordPress Core

Changeset 14235


Ignore:
Timestamp:
04/25/2010 03:59:03 PM (9 years ago)
Author:
ryan
Message:

Fix back compat for hidden columns and layout screen options. Change meta baox order to be per user, rather than per blog. This breaks back compat for box order but the previous behavior was wrong. see #13032

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r14229 r14235  
    10301030
    10311031    if ( is_array($hidden) )
    1032         update_user_option($user->ID, "manage-$page-columns-hidden", $hidden);
     1032        update_user_option($user->ID, "manage{$page}columnshidden", $hidden, true);
    10331033
    10341034    die('1');
     
    10471047
    10481048    if ( $order )
    1049         update_user_option($user->ID, "meta-box-order_$page", $order);
     1049        update_user_option($user->ID, "meta-box-order_$page", $order, true);
    10501050
    10511051    if ( $page_columns )
    1052         update_user_option($user->ID, "screen_layout_$page", $page_columns);
     1052        update_user_option($user->ID, "screen_layout_$page", $page_columns, true);
    10531053
    10541054    die('1');
  • trunk/wp-admin/includes/template.php

    r14233 r14235  
    835835        $screen = convert_to_screen($screen);
    836836
    837     return (array) get_user_option( 'manage-' . $screen->id. '-columns-hidden' );
     837    return (array) get_user_option( 'manage' . $screen->id. 'columnshidden' );
    838838}
    839839
Note: See TracChangeset for help on using the changeset viewer.