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: http://core.svn.wordpress.org/trunk@24586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
44abe2e502
commit
a8cb46d9a3
|
@ -376,11 +376,7 @@ wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false );
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( has_action( 'edit_form_after_title' ) ) {
|
do_action( 'edit_form_after_title', $post );
|
||||||
echo '<div class="edit-form-section">';
|
|
||||||
do_action( 'edit_form_after_title', $post );
|
|
||||||
echo '</div>';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( post_type_supports($post_type, 'editor') ) {
|
if ( post_type_supports($post_type, 'editor') ) {
|
||||||
?>
|
?>
|
||||||
|
@ -412,11 +408,7 @@ if ( post_type_supports($post_type, 'editor') ) {
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }
|
||||||
|
|
||||||
if ( has_action( 'edit_form_after_editor' ) ) {
|
do_action( 'edit_form_after_editor', $post );
|
||||||
echo '<div class="edit-form-section">';
|
|
||||||
do_action( 'edit_form_after_editor', $post );
|
|
||||||
echo '</div>';
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</div><!-- /post-body-content -->
|
</div><!-- /post-body-content -->
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue