Skip to:
Content

BuddyPress.org

Changeset 10070


Ignore:
Timestamp:
08/27/2015 01:06:42 AM (10 years ago)
Author:
imath
Message:

Improve the way the BuddyPress uploader is getting window.wp needed attributes.

We only need wp.Backbone, wp.ajax and wp.template.

See #6574 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/js/bp-plupload.js

    r10049 r10070  
    22
    33window.wp = window.wp || {};
    4 window.bp = window.bp || _.omit( window.wp, ['Uploader', 'emoji'] );
     4window.bp = window.bp || {};
    55
    66( function( exports, $ ) {
     
    1111    }
    1212
     13    // Set the bp global by only getting what we need from the wp one.
     14    window.bp = _.pick( window.wp, 'Backbone', 'ajax', 'template' );
     15
     16    // Init Models, Collections, Views and the BuddyPress Uploader
    1317    bp.Models      = bp.Models || {};
    1418    bp.Collections = bp.Collections || {};
Note: See TracChangeset for help on using the changeset viewer.