WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/25/2010 03:59:03 PM (11 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

File:
1 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');
Note: See TracChangeset for help on using the changeset viewer.