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

git-svn-id: http://svn.automattic.com/wordpress/trunk@14235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-04-25 15:59:03 +00:00
parent 98c3888a06
commit 6cd2a49a40
2 changed files with 4 additions and 4 deletions

View File

@ -1029,7 +1029,7 @@ case 'hidden-columns' :
die('-1');
if ( is_array($hidden) )
update_user_option($user->ID, "manage-$page-columns-hidden", $hidden);
update_user_option($user->ID, "manage{$page}columnshidden", $hidden, true);
die('1');
break;
@ -1046,10 +1046,10 @@ case 'meta-box-order':
die('-1');
if ( $order )
update_user_option($user->ID, "meta-box-order_$page", $order);
update_user_option($user->ID, "meta-box-order_$page", $order, true);
if ( $page_columns )
update_user_option($user->ID, "screen_layout_$page", $page_columns);
update_user_option($user->ID, "screen_layout_$page", $page_columns, true);
die('1');
break;

View File

@ -834,7 +834,7 @@ function get_hidden_columns($screen) {
if ( is_string($screen) )
$screen = convert_to_screen($screen);
return (array) get_user_option( 'manage-' . $screen->id. '-columns-hidden' );
return (array) get_user_option( 'manage' . $screen->id. 'columnshidden' );
}
/**