Don't modify post_author during a quick edit when the post type doesn't support authors.
props ocean90. fixes #16645. Built from https://develop.svn.wordpress.org/trunk@25698 git-svn-id: http://core.svn.wordpress.org/trunk@25613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e8e5f48905
commit
f29acee299
|
@ -1085,6 +1085,9 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||
} ?>
|
||||
<input type="hidden" name="post_view" value="<?php echo esc_attr( $m ); ?>" />
|
||||
<input type="hidden" name="screen" value="<?php echo esc_attr( $screen->id ); ?>" />
|
||||
<?php if ( ! $bulk && ! post_type_supports( $screen->post_type, 'author' ) ) { ?>
|
||||
<input type="hidden" name="post_author" value="<?php echo esc_attr( $post->post_author ); ?>" />
|
||||
<?php } ?>
|
||||
<span class="error" style="display:none"></span>
|
||||
<br class="clear" />
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue