Make WordPress Core


Ignore:
Timestamp:
11/11/2008 02:58:24 AM (15 years ago)
Author:
azaozz
Message:

New design of Quick/Bulk Edit (added some colors and IE fixes), props mdawaffe, see #8144

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r9596 r9604  
    216216    $post_IDs = array_map( intval, (array) $post_data['post'] );
    217217
    218     $reset = array( 'post_author', 'post_status', 'post_password', 'post_parent', 'page_template', 'comment_status', 'ping_status', 'keep_private', 'tags_input', 'post_category' );
     218    $reset = array( 'post_author', 'post_status', 'post_password', 'post_parent', 'page_template', 'comment_status', 'ping_status', 'keep_private', 'tags_input', 'post_category', 'sticky' );
    219219    foreach ( $reset as $field ) {
    220220        if ( isset($post_data[$field]) && ( '' == $post_data[$field] || -1 == $post_data[$field] ) )
     
    275275        $post_data['ID'] = $post_ID;
    276276        $updated[] = wp_update_post( $post_data );
     277
     278        if ( current_user_can( 'edit_others_posts' ) && isset( $post_data['sticky'] ) ) {
     279            if ( 'sticky' == $post_data['sticky'] )
     280                stick_post( $post_ID );
     281            else
     282                unstick_post( $post_ID );
     283        }
     284
    277285    }
    278286
Note: See TracChangeset for help on using the changeset viewer.