mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
98c3888a06
commit
6cd2a49a40
@ -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;
|
||||
|
@ -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' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user