WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/25/2011 10:55:39 PM (10 years ago)
Author:
azaozz
Message:

Improve auto column switching for post.php, see #18198

File:
1 edited

Legend:

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

    r18502 r18607  
    11401140    check_ajax_referer( 'meta-box-order' );
    11411141    $order = isset( $_POST['order'] ) ? (array) $_POST['order'] : false;
    1142     $page_columns = isset( $_POST['page_columns'] ) ? (int) $_POST['page_columns'] : 0;
     1142    $page_columns = isset( $_POST['page_columns'] ) ? $_POST['page_columns'] : 'auto';
     1143
     1144    if ( $page_columns != 'auto' )
     1145        $page_columns = (int) $page_columns;
     1146
    11431147    $page = isset( $_POST['page'] ) ? $_POST['page'] : '';
    11441148
Note: See TracChangeset for help on using the changeset viewer.