Changeset 24446
- Timestamp:
- 06/19/2013 09:10:51 PM (12 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r24388 r24446 152 152 add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', null, 'normal', 'core'); 153 153 154 do_action('dbx_post_advanced' );154 do_action('dbx_post_advanced', $post); 155 155 if ( post_type_supports($post_type, 'comments') ) 156 156 add_meta_box('commentstatusdiv', __('Discussion'), 'post_comment_status_meta_box', null, 'normal', 'core'); … … 317 317 </div> 318 318 319 <form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag' ); ?>>319 <form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag', $post); ?>> 320 320 <?php wp_nonce_field($nonce_action); ?> 321 321 <input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" /> … … 379 379 if ( has_action( 'edit_form_after_title' ) ) { 380 380 echo '<div class="edit-form-section">'; 381 do_action( 'edit_form_after_title' );381 do_action( 'edit_form_after_title', $post ); 382 382 echo '</div>'; 383 383 } … … 415 415 if ( has_action( 'edit_form_after_editor' ) ) { 416 416 echo '<div class="edit-form-section">'; 417 do_action( 'edit_form_after_editor' );417 do_action( 'edit_form_after_editor', $post ); 418 418 echo '</div>'; 419 419 } … … 425 425 426 426 if ( 'page' == $post_type ) 427 do_action('submitpage_box' );427 do_action('submitpage_box', $post); 428 428 else 429 do_action('submitpost_box' );429 do_action('submitpost_box', $post); 430 430 431 431 do_meta_boxes($post_type, 'side', $post); … … 439 439 440 440 if ( 'page' == $post_type ) 441 do_action('edit_page_form' );441 do_action('edit_page_form', $post); 442 442 else 443 do_action('edit_form_advanced' );443 do_action('edit_form_advanced', $post); 444 444 445 445 do_meta_boxes(null, 'advanced', $post); … … 449 449 <?php 450 450 451 do_action('dbx_post_sidebar' );451 do_action('dbx_post_sidebar', $post); 452 452 453 453 ?> -
trunk/wp-admin/includes/media.php
r24320 r24446 2322 2322 * @since 3.5.0 2323 2323 */ 2324 function edit_form_image_editor() { 2325 $post = get_post(); 2326 2324 function edit_form_image_editor( $post ) { 2327 2325 $open = isset( $_GET['image-editor'] ); 2328 2326 if ( $open )
Note: See TracChangeset
for help on using the changeset viewer.