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:
Helen Hou-Sandi 2013-07-08 15:45:53 +00:00
parent cdaa82bc9b
commit 8669be7094
1 changed files with 2 additions and 10 deletions

View File

@ -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 -->