diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index cb3c2f2d28..9145362994 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -2766,6 +2766,17 @@ function edit_form_image_editor( $post ) { echo wp_video_shortcode( $attr ); + else : + + /** + * Fires when attachment type can't be rendered in the edit form. + * + * @since 4.6.0 + * + * @param WP_Post A post object. + */ + do_action( 'wp_edit_form_attachment_display', $post ); + endif; ?>
diff --git a/wp-includes/version.php b/wp-includes/version.php index e0deaf5183..a85d9fda8b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37878'; +$wp_version = '4.6-alpha-37879'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.