WordPress.org

Make WordPress Core

Ticket #29778: 29778.diff

File 29778.diff, 2.5 KB (added by AugusGils, 6 years ago)
  • src/wp-admin/edit-form-advanced.php

    diff --git src/wp-admin/edit-form-advanced.php src/wp-admin/edit-form-advanced.php
    index ebda7a3..267a299 100644
    do_action( 'edit_form_after_editor', $post ); 
    544544</div><!-- /post-body-content -->
    545545
    546546<div id="postbox-container-1" class="postbox-container">
    547 <?php
    548 
    549 if ( 'page' == $post_type ) {
    550         /**
    551          * Fires before meta boxes with 'side' context are output for the 'page' post type.
    552          *
    553          * The submitpage box is a meta box with 'side' context, so this hook fires just before it is output.
    554          *
    555          * @since 2.5.0
    556          *
    557          * @param WP_Post $post Post object.
    558          */
    559         do_action( 'submitpage_box', $post );
    560 }
    561 else {
    562         /**
    563          * Fires before meta boxes with 'side' context are output for all post types other than 'page'.
    564          *
    565          * The submitpost box is a meta box with 'side' context, so this hook fires just before it is output.
    566          *
    567          * @since 2.5.0
    568          *
    569          * @param WP_Post $post Post object.
    570          */
    571         do_action( 'submitpost_box', $post );
    572 }
    573 
    574 
    575 do_meta_boxes($post_type, 'side', $post);
    576 
    577 ?>
     547        <?php do_meta_boxes($post_type, 'side', $post); ?>
    578548</div>
    579549<div id="postbox-container-2" class="postbox-container">
    580550<?php
  • src/wp-admin/includes/template.php

    diff --git src/wp-admin/includes/template.php src/wp-admin/includes/template.php
    index 30dcf0f..7cde2a8 100644
    function do_meta_boxes( $screen, $context, $object ) { 
    10041004
    10051005        printf('<div id="%s-sortables" class="meta-box-sortables">', htmlspecialchars($context));
    10061006
     1007        if ( 'page' == $object->post_type && 'side' == $context ) {
     1008                /**
     1009                 * Fires before meta boxes with 'side' context are output for the 'page' post type.
     1010                 *
     1011                 * The submitpage box is a meta box with 'side' context, so this hook fires just before it is output.
     1012                 *
     1013                 * @since 2.5.0
     1014                 *
     1015                 * @param WP_Post $object Post object.
     1016                 */
     1017                do_action( 'submitpage_box', $object );
     1018        }
     1019        else if ( 'side' == $context ) {
     1020                /**
     1021                 * Fires before meta boxes with 'side' context are output for all post types other than 'page'.
     1022                 *
     1023                 * The submitpost box is a meta box with 'side' context, so this hook fires just before it is output.
     1024                 *
     1025                 * @since 2.5.0
     1026                 *
     1027                 * @param WP_Post $object Post object.
     1028                 */
     1029                do_action( 'submitpost_box', $object );
     1030        }
     1031
    10071032        $i = 0;
    10081033        do {
    10091034                // Grab the ones the user has manually sorted. Pull them out of their previous context/priority and into the one the user chose