Make WordPress Core


Ignore:
Timestamp:
10/06/2013 01:14:06 PM (10 years ago)
Author:
nacin
Message:

Don't modify post_author during a quick edit when the post type doesn't support authors.

props ocean90.
fixes #16645.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r25678 r25698  
    10861086            <input type="hidden" name="post_view" value="<?php echo esc_attr( $m ); ?>" />
    10871087            <input type="hidden" name="screen" value="<?php echo esc_attr( $screen->id ); ?>" />
     1088            <?php if ( ! $bulk && ! post_type_supports( $screen->post_type, 'author' ) ) { ?>
     1089                <input type="hidden" name="post_author" value="<?php echo esc_attr( $post->post_author ); ?>" />
     1090            <?php } ?>
    10881091            <span class="error" style="display:none"></span>
    10891092            <br class="clear" />
Note: See TracChangeset for help on using the changeset viewer.