WordPress.org

Make WordPress Core

Changeset 27216


Ignore:
Timestamp:
02/20/2014 09:37:57 PM (7 years ago)
Author:
wonderboymusic
Message:

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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r27209 r27216  
    2626
    2727$media_type = false;
    28 if ( 'attachment' && $post_ID ) {
     28if ( 'attachment' === $post_type && $post_ID ) {
    2929    $post = get_post( $post_ID );
    3030    $media_type = post_supports_thumbnails( $post );
Note: See TracChangeset for help on using the changeset viewer.