Make WordPress Core


Ignore:
Timestamp:
08/07/2014 04:43:36 AM (12 years ago)
Author:
wonderboymusic
Message:

In media.view.AttachmentFilters.All, make uploaded conditional upon media.view.settings.post.id and include a new filter: unattached.

Drop the mime-types filter and related class (which was added for Media Grid) and use all instead.

Props ocean90, wonderboymusic.
Fixes #29065.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r29401 r29426  
    29242924        'noItemsFound'           => __( 'No items found.' ),
    29252925        'insertIntoPost'         => $hier ? __( 'Insert into page' ) : __( 'Insert into post' ),
     2926        'unattached'             => __( 'Unattached' ),
    29262927        'uploadedToThisPost'     => $hier ? __( 'Uploaded to this page' ) : __( 'Uploaded to this post' ),
    29272928        'warnDelete'             => __( "You are about to permanently delete this item.\n  'Cancel' to stop, 'OK' to delete." ),
Note: See TracChangeset for help on using the changeset viewer.