Make WordPress Core


Ignore:
Timestamp:
05/26/2012 03:32:05 PM (13 years ago)
Author:
nacin
Message:

Theme Customizer: As customize.php without a theme parameter defaults to the current theme, update wp_customize_url() to make $stylesheet optional and update references for the current theme.

see #19910, #20751, #20575.

File:
1 edited

Legend:

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

    r20918 r20934  
    16161616 *
    16171617 * @since 3.4.0
    1618  */
    1619 function wp_customize_url( $stylesheet ) {
    1620     return esc_url( admin_url( 'customize.php' ) . '?theme=' . $stylesheet );
     1618 *
     1619 * @param string $stylesheet Optional. Theme to customize. Defaults to current theme.
     1620 */
     1621function wp_customize_url( $stylesheet = null ) {
     1622    $url = admin_url( 'customize.php' );
     1623    if ( $stylesheet )
     1624        $url .= '?theme=' . $stylesheet;
     1625    return esc_url( $url );
    16211626}
    16221627
Note: See TracChangeset for help on using the changeset viewer.