Make WordPress Core

Changeset 28998


Ignore:
Timestamp:
07/04/2014 05:13:46 AM (10 years ago)
Author:
wonderboymusic
Message:

Media Grid: JSHint fixes.

See #24716.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r28995 r28998  
     1/* global _wpMediaViewsL10n, setUserSetting, deleteUserSetting, MediaElementPlayer */
    12(function($, _, Backbone, wp) {
    23    var media = wp.media, l10n;
     
    9596            var mode = this.get( 'content' );
    9697            if ( mode ) {
    97                 this.frame[ 'content' ].render( mode );
     98                this.frame.content.render( mode );
    9899            }
    99100        }
     
    219220        editPreviousAttachment: function( currentModel ) {
    220221            var library = this.state().get('library'),
    221                 currentModelIndex = library.indexOf( currentModel );
     222                currentModelIndex = library.indexOf( currentModel );
    222223            this.trigger( 'edit:attachment', library.at( currentModelIndex - 1 ) );
    223224        },
     
    225226        editNextAttachment: function( currentModel ) {
    226227            var library = this.state().get('library'),
    227                 currentModelIndex = library.indexOf( currentModel );
     228                currentModelIndex = library.indexOf( currentModel );
    228229            this.trigger( 'edit:attachment', library.at( currentModelIndex + 1 ) );
    229230        },
     
    343344        },
    344345
    345         initialize: function( options ) {
     346        initialize: function() {
    346347            var self = this;
    347348            media.view.Frame.prototype.initialize.apply( this, arguments );
  • trunk/src/wp-includes/media-template.php

    r28997 r28998  
    236236        </label>
    237237        <label class="setting">
    238             <span><?php _e( 'Attached to' ); ?></span>
     238            <span><?php _e( 'Uploaded to' ); ?></span>
    239239            <input type="checkbox" data-setting="uploadedTo" {{ '' === getUserSetting( 'hidegriduploadedTo' ) && 'checked' }} />
    240240        </label>
Note: See TracChangeset for help on using the changeset viewer.