mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Improve auto column switching for post.php, see #18198
git-svn-id: https://develop.svn.wordpress.org/trunk@18607 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1139,7 +1139,11 @@ case 'menu-locations-save':
|
||||
case 'meta-box-order':
|
||||
check_ajax_referer( 'meta-box-order' );
|
||||
$order = isset( $_POST['order'] ) ? (array) $_POST['order'] : false;
|
||||
$page_columns = isset( $_POST['page_columns'] ) ? (int) $_POST['page_columns'] : 0;
|
||||
$page_columns = isset( $_POST['page_columns'] ) ? $_POST['page_columns'] : 'auto';
|
||||
|
||||
if ( $page_columns != 'auto' )
|
||||
$page_columns = (int) $page_columns;
|
||||
|
||||
$page = isset( $_POST['page'] ) ? $_POST['page'] : '';
|
||||
|
||||
if ( !preg_match( '/^[a-z_-]+$/', $page ) )
|
||||
|
||||
Reference in New Issue
Block a user