WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/26/2012 09:40:02 PM (9 years ago)
Author:
koopersmith
Message:

Limit the featured image workflow to images only.

Adds the ability to set the values used to instantiate both the Workflow's library and selection.
Renames the Workflows internal _pending variable to prevent conflicts with a similarly named internal Backbone.Model variable.

see #21390, #21776.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/meta-boxes.php

    r22019 r22022  
    10311031
    10321032            if ( ! workflow ) {
    1033                 workflow = wp.media();
     1033                workflow = wp.media({
     1034                    library: {
     1035                        type: 'image'
     1036                    }
     1037                });
     1038
    10341039                workflow.selection.on( 'add', function( model ) {
    10351040                    var sizes = model.get('sizes'),
Note: See TracChangeset for help on using the changeset viewer.