WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/08/2013 03:45:53 PM (8 years ago)
Author:
helen
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r24446 r24586  
    377377}
    378378
    379 if ( has_action( 'edit_form_after_title' ) ) {
    380     echo '<div class="edit-form-section">';
    381     do_action( 'edit_form_after_title', $post );
    382     echo '</div>';
    383 }
     379do_action( 'edit_form_after_title', $post );
    384380
    385381if ( post_type_supports($post_type, 'editor') ) {
     
    413409<?php }
    414410
    415 if ( has_action( 'edit_form_after_editor' ) ) {
    416     echo '<div class="edit-form-section">';
    417     do_action( 'edit_form_after_editor', $post );
    418     echo '</div>';
    419 }
     411do_action( 'edit_form_after_editor', $post );
    420412?>
    421413</div><!-- /post-body-content -->
Note: See TracChangeset for help on using the changeset viewer.