Make WordPress Core


Ignore:
Timestamp:
04/16/2012 02:36:47 PM (15 years ago)
Author:
nacin
Message:

Theme Customizer: Stick to wp_customize_url() instead of wp_customize_href(). Switch argument order so it is stylesheet-template. (Template is hypothetically optional, but the function will not support that.) see #19910.

Move to ->display('Name'), as ->get('Name') is a raw, untranslated version of the header.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-themes-list-table.php

    r20476 r20477  
    137137                        $actions[] = '<a href="' . $preview_link . '" class="hide-if-customize" title="'
    138138                                . esc_attr( sprintf( __( 'Preview &#8220;%s&#8221;' ), $title ) ) . '">' . __( 'Preview' ) . '</a>'
    139                                 . '<a ' . wp_customize_href( $template, $stylesheet ) . ' class="load-customize hide-if-no-customize">'
     139                                . '<a href="' . wp_customize_url( $stylesheet, $template ) . '" class="load-customize hide-if-no-customize">'
    140140                                . __( 'Customize' ) . '</a>';
    141141                        if ( ! is_multisite() && current_user_can( 'delete_themes' ) )
    … …  
    155155                                <?php endif; ?>
    156156                        </a>
    157                         <a <?php echo wp_customize_href( $template, $stylesheet ); ?> class="screenshot load-customize hide-if-no-customize">
     157                        <a href="<?php echo wp_customize_url( $stylesheet, $template ); ?>" class="screenshot load-customize hide-if-no-customize">
    158158                                <?php if ( $screenshot = $theme->get_screenshot() ) : ?>
    159159                                        <img src="<?php echo esc_url( $screenshot ); ?>" alt="" />
Note: See TracChangeset for help on using the changeset viewer.