Ensure the DocBlock directly precedes the hook line for the post_edit_form_tag
action in wp-admin/edit-form-advanced.php.
This fixes the parser getting confused about which DocBlock belongs to which hook or function in this file. See #30473. git-svn-id: https://develop.svn.wordpress.org/trunk@30539 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ad50389634
commit
2d064e1b86
@ -398,16 +398,16 @@ if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create
|
|||||||
<span class="hide-if-no-sessionstorage"><?php _e( 'We’re backing up this post in your browser, just in case.' ); ?></span>
|
<span class="hide-if-no-sessionstorage"><?php _e( 'We’re backing up this post in your browser, just in case.' ); ?></span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<form name="post" action="post.php" method="post" id="post"<?php
|
||||||
/**
|
/**
|
||||||
* Fires inside the post editor <form> tag.
|
* Fires inside the post editor form tag.
|
||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @param WP_Post $post Post object.
|
* @param WP_Post $post Post object.
|
||||||
*/
|
*/
|
||||||
?>
|
do_action( 'post_edit_form_tag', $post );
|
||||||
<form name="post" action="post.php" method="post" id="post"<?php do_action( 'post_edit_form_tag', $post ); ?>>
|
?>>
|
||||||
<?php wp_nonce_field($nonce_action); ?>
|
<?php wp_nonce_field($nonce_action); ?>
|
||||||
<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
|
<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
|
||||||
<input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr( $form_action ) ?>" />
|
<input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr( $form_action ) ?>" />
|
||||||
|
Loading…
Reference in New Issue
Block a user