WordPress.org

Make WordPress Core

Ticket #32637: 32637.2.patch

File 32637.2.patch, 548 bytes (added by McGuive7, 5 years ago)

Improved patch using home_url( '/' ) instead of get_home_url()

  • 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 = home_url( '/' );
    3131        } else {
    32                 $return = admin_url();
     32                $return = home_url( '/' );
    3333        }
    3434}
    3535