Make WordPress Core


Ignore:
Timestamp:
11/01/2015 06:39:50 AM (10 years ago)
Author:
westonruter
Message:

Customize: Return user to referring URL when leaving Customizer in absence of return query param.

When referring URL is not available, default returning user to frontend URL instead of admin URL. Themes page is updated to include the return path in Customizer links.

Props McGuive7, westonruter.
Fixes #32637.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/themes.php

    r35220 r35483  
    388388    <# if ( data.active ) { #>
    389389        <# if ( data.actions.customize ) { #>
    390             <a class="button button-primary customize load-customize hide-if-no-customize" href="{{ data.actions.customize }}"><?php _e( 'Customize' ); ?></a>
     390            <a class="button button-primary customize load-customize hide-if-no-customize" href="{{{ data.actions.customize }}}"><?php _e( 'Customize' ); ?></a>
    391391        <# } #>
    392392    <# } else { #>
Note: See TracChangeset for help on using the changeset viewer.