Commit 2d4588a0 authored by Scott Taylor's avatar Scott Taylor
Browse files

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: https://core.svn.wordpress.org/trunk@27073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent aa13814c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 );
}