diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 3e485f24af..044e0b302f 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -151,7 +151,7 @@ if ( post_type_supports($post_type, 'trackbacks') ) if ( post_type_supports($post_type, 'custom-fields') ) add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', null, 'normal', 'core'); -do_action('dbx_post_advanced'); +do_action('dbx_post_advanced', $post); if ( post_type_supports($post_type, 'comments') ) add_meta_box('commentstatusdiv', __('Discussion'), 'post_comment_status_meta_box', null, 'normal', 'core'); @@ -316,7 +316,7 @@ if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create

-
> +> @@ -378,7 +378,7 @@ wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); if ( has_action( 'edit_form_after_title' ) ) { echo '
'; - do_action( 'edit_form_after_title' ); + do_action( 'edit_form_after_title', $post ); echo '
'; } @@ -414,7 +414,7 @@ if ( post_type_supports($post_type, 'editor') ) { if ( has_action( 'edit_form_after_editor' ) ) { echo '
'; - do_action( 'edit_form_after_editor' ); + do_action( 'edit_form_after_editor', $post ); echo '
'; } ?> @@ -424,9 +424,9 @@ if ( has_action( 'edit_form_after_editor' ) ) { diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 91937c52e5..aa1b21de36 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -2321,9 +2321,7 @@ function multisite_over_quota_message() { * * @since 3.5.0 */ -function edit_form_image_editor() { - $post = get_post(); - +function edit_form_image_editor( $post ) { $open = isset( $_GET['image-editor'] ); if ( $open ) require_once ABSPATH . 'wp-admin/includes/image-edit.php';