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
This commit is contained in:
Scott Taylor 2014-02-20 21:37:57 +00:00
parent 2b06a387fe
commit 52cbf23fe2

View File

@ -25,7 +25,7 @@ $user_ID = isset($user_ID) ? (int) $user_ID : 0;
$action = isset($action) ? $action : ''; $action = isset($action) ? $action : '';
$media_type = false; $media_type = false;
if ( 'attachment' && $post_ID ) { if ( 'attachment' === $post_type && $post_ID ) {
$post = get_post( $post_ID ); $post = get_post( $post_ID );
$media_type = post_supports_thumbnails( $post ); $media_type = post_supports_thumbnails( $post );
} }