WordPress.org

Make WordPress Core

Changeset 10917


Ignore:
Timestamp:
04/13/2009 03:39:46 AM (9 years ago)
Author:
azaozz
Message:

Prevent hiding of the Publish postbox

File:
1 edited

Legend:

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

    r10912 r10917  
    982982        update_usermeta($user->ID, 'closedpostboxes_'.$page, $closed);
    983983
    984     if ( is_array($hidden) )
     984    if ( is_array($hidden) ) {
     985        $hidden = array_diff( $hidden, array('submitdiv', 'pagesubmitdiv', 'linksubmitdiv') ); // postboxes that are always shown
    985986        update_usermeta($user->ID, 'meta-box-hidden_'.$page, $hidden);
     987    }
    986988
    987989    die('1');
Note: See TracChangeset for help on using the changeset viewer.