Correct a missing conditional in `edit-form-advanced.php`.

See #26631, [27209]. 
Props nacin for noticing.


Built from https://develop.svn.wordpress.org/trunk@27216


git-svn-id: http://core.svn.wordpress.org/trunk@27073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-02-20 21:38:12 +00:00
parent f319feb524
commit a730c3744a
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}