mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Remove the conditional wrappers for the edit_form_after_* hooks. Using the .edit-form-section class will still add a 20px bottom margin; devs will just want to add wrapping containers as appropriate. fixes #24334; see #23240.
git-svn-id: https://develop.svn.wordpress.org/trunk@24586 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -376,11 +376,7 @@ wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false );
|
||||
<?php
|
||||
}
|
||||
|
||||
if ( has_action( 'edit_form_after_title' ) ) {
|
||||
echo '<div class="edit-form-section">';
|
||||
do_action( 'edit_form_after_title', $post );
|
||||
echo '</div>';
|
||||
}
|
||||
do_action( 'edit_form_after_title', $post );
|
||||
|
||||
if ( post_type_supports($post_type, 'editor') ) {
|
||||
?>
|
||||
@@ -412,11 +408,7 @@ if ( post_type_supports($post_type, 'editor') ) {
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if ( has_action( 'edit_form_after_editor' ) ) {
|
||||
echo '<div class="edit-form-section">';
|
||||
do_action( 'edit_form_after_editor', $post );
|
||||
echo '</div>';
|
||||
}
|
||||
do_action( 'edit_form_after_editor', $post );
|
||||
?>
|
||||
</div><!-- /post-body-content -->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user