From 52cbf23fe29df0aab7cfbeaf613f26b631c764d9 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 20 Feb 2014 21:37:57 +0000 Subject: [PATCH] Correct a missing conditional in `edit-form-advanced.php`. See #26631, [27209]. Props nacin for noticing. git-svn-id: https://develop.svn.wordpress.org/trunk@27216 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/edit-form-advanced.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/edit-form-advanced.php b/src/wp-admin/edit-form-advanced.php index a85011d550..2035107c28 100644 --- a/src/wp-admin/edit-form-advanced.php +++ b/src/wp-admin/edit-form-advanced.php @@ -25,7 +25,7 @@ $user_ID = isset($user_ID) ? (int) $user_ID : 0; $action = isset($action) ? $action : ''; $media_type = false; -if ( 'attachment' && $post_ID ) { +if ( 'attachment' === $post_type && $post_ID ) { $post = get_post( $post_ID ); $media_type = post_supports_thumbnails( $post ); }