WordPress.org

Make WordPress Core

Changeset 37339


Ignore:
Timestamp:
05/01/2016 07:53:13 PM (4 years ago)
Author:
ocean90
Message:

Customize: Don't auto-close the customizer when a new theme is activated.

Props celloexpressions.
Fixes #35320.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-controls.js

    r37230 r37339  
    37233723        } );
    37243724
    3725         /*
    3726          * When activated, let the loader handle redirecting the page.
    3727          * If no loader exists, redirect the page ourselves (if a url exists).
    3728          */
    3729         api.bind( 'activated', function() {
    3730             if ( parent.targetWindow() )
    3731                 parent.send( 'activated', api.settings.url.activated );
    3732             else if ( api.settings.url.activated )
    3733                 window.location = api.settings.url.activated;
    3734         });
    3735 
    37363725        // Pass titles to the parent
    37373726        api.bind( 'title', function( newTitle ) {
  • trunk/src/wp-includes/js/customize-loader.js

    r33911 r37339  
    151151            $( window ).on( 'beforeunload', this.beforeunload );
    152152
    153             this.messenger.bind( 'activated', function( location ) {
    154                 if ( location ) {
    155                     window.location = location;
    156                 }
    157             });
    158 
    159153            this.messenger.bind( 'saved', function () {
    160154                Loader.saved( true );
Note: See TracChangeset for help on using the changeset viewer.