mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-31 13:37:51 +01: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: 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
|
||||
}
|
||||
|
||||
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 -->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user