Make WordPress Core


Ignore:
Timestamp:
07/24/2025 04:50:40 AM (11 months ago)
Author:
westonruter
Message:

Customize: Account for existing query params in the admin URL when wp_customize_url() adds the theme query param.

Query parameters may be inserted in the initial customize.php URL via the admin_url and site_url filters.

Props xipasduarte, westonruter.
Fixes #63632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r60262 r60499  
    37723772    $url = admin_url( 'customize.php' );
    37733773    if ( $stylesheet ) {
    3774         $url .= '?theme=' . urlencode( $stylesheet );
     3774        $url = add_query_arg( 'theme', urlencode( $stylesheet ), $url );
    37753775    }
    37763776    return esc_url( $url );
Note: See TracChangeset for help on using the changeset viewer.