Don't modify post_author during a quick edit when the post type doesn't support authors.
props ocean90. fixes #16645. git-svn-id: https://develop.svn.wordpress.org/trunk@25698 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9f23f85ae2
commit
0286d7030d
@ -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="post_view" value="<?php echo esc_attr( $m ); ?>" />
|
||||||
<input type="hidden" name="screen" value="<?php echo esc_attr( $screen->id ); ?>" />
|
<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>
|
<span class="error" style="display:none"></span>
|
||||||
<br class="clear" />
|
<br class="clear" />
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user