WordPress.org

Make WordPress Core

Ticket #32637: 32637.patch

File 32637.patch, 546 bytes (added by McGuive7, 5 years ago)

Sets default customizer return screen to the site's front page instead of the admin theme page.

  • wp-admin/customize.php

     
    1 <?php
     1        <?php
    22/**
    33 * Theme Customize Screen.
    44 *
     
    2727        if ( $url ) {
    2828                $return = $url;
    2929        } elseif ( current_user_can( 'edit_theme_options' ) || current_user_can( 'switch_themes' ) ) {
    30                 $return = admin_url( 'themes.php' );
     30                $return = get_home_url();
    3131        } else {
    32                 $return = admin_url();
     32                $return = get_home_url();
    3333        }
    3434}
    3535