Make WordPress Core

Changeset 24465 for branches/3.5


Ignore:
Timestamp:
06/21/2013 02:50:58 AM (12 years ago)
Author:
nacin
Message:

Pass $post to hooks in edit-form-advanced.php including edit_form_advanced and edit_form_after_*. fixes #24611.

Merges [24446] to the 3.5 branch.

Location:
branches/3.5
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.5

  • branches/3.5/wp-admin/edit-form-advanced.php

    r23083 r24465  
    145145    add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', null, 'normal', 'core');
    146146
    147 do_action('dbx_post_advanced');
     147do_action('dbx_post_advanced', $post);
    148148if ( post_type_supports($post_type, 'comments') )
    149149    add_meta_box('commentstatusdiv', __('Discussion'), 'post_comment_status_meta_box', null, 'normal', 'core');
     
    297297<div id="message" class="updated"><p><?php echo $message; ?></p></div>
    298298<?php endif; ?>
    299 <form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag'); ?>>
     299<form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag', $post); ?>>
    300300<?php wp_nonce_field($nonce_action); ?>
    301301<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
     
    355355}
    356356
    357 do_action( 'edit_form_after_title' );
     357do_action( 'edit_form_after_title', $post );
    358358
    359359if ( post_type_supports($post_type, 'editor') ) {
     
    384384<?php } ?>
    385385
    386 <?php do_action( 'edit_form_after_editor' ); ?>
     386<?php do_action( 'edit_form_after_editor', $post ); ?>
    387387</div><!-- /post-body-content -->
    388388
     
    391391
    392392if ( 'page' == $post_type )
    393     do_action('submitpage_box');
     393    do_action('submitpage_box', $post);
    394394else
    395     do_action('submitpost_box');
     395    do_action('submitpost_box', $post);
    396396
    397397do_meta_boxes($post_type, 'side', $post);
     
    405405
    406406if ( 'page' == $post_type )
    407     do_action('edit_page_form');
     407    do_action('edit_page_form', $post);
    408408else
    409     do_action('edit_form_advanced');
     409    do_action('edit_form_advanced', $post);
    410410
    411411do_meta_boxes(null, 'advanced', $post);
     
    415415<?php
    416416
    417 do_action('dbx_post_sidebar');
     417do_action('dbx_post_sidebar', $post);
    418418
    419419?>
  • branches/3.5/wp-admin/includes/media.php

    r23291 r24465  
    22712271 * @since 3.5.0
    22722272 */
    2273 function edit_form_image_editor() {
    2274     $post = get_post();
    2275 
     2273function edit_form_image_editor( $post ) {
    22762274    $open = isset( $_GET['image-editor'] );
    22772275    if ( $open )
Note: See TracChangeset for help on using the changeset viewer.