Changeset 20520
- Timestamp:
- 04/18/2012 08:57:06 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-themes-list-table.php
r20477 r20520 137 137 $actions[] = '<a href="' . $preview_link . '" class="hide-if-customize" title="' 138 138 . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '">' . __( 'Preview' ) . '</a>' 139 . '<a href="' . wp_customize_url( $stylesheet , $template) . '" class="load-customize hide-if-no-customize">'139 . '<a href="' . wp_customize_url( $stylesheet ) . '" class="load-customize hide-if-no-customize">' 140 140 . __( 'Customize' ) . '</a>'; 141 141 if ( ! is_multisite() && current_user_can( 'delete_themes' ) ) … … 155 155 <?php endif; ?> 156 156 </a> 157 <a href="<?php echo wp_customize_url( $stylesheet , $template); ?>" class="screenshot load-customize hide-if-no-customize">157 <a href="<?php echo wp_customize_url( $stylesheet ); ?>" class="screenshot load-customize hide-if-no-customize"> 158 158 <?php if ( $screenshot = $theme->get_screenshot() ) : ?> 159 159 <img src="<?php echo esc_url( $screenshot ); ?>" alt="" /> -
trunk/wp-admin/includes/class-wp-upgrader.php
r20477 r20520 1517 1517 $install_actions = array(); 1518 1518 $install_actions['preview'] = '<a href="' . esc_url( $preview_link ) . '" class="hide-if-customize" title="' . esc_attr(sprintf(__('Preview “%s”'), $name ) ) . '">' . __('Preview') . '</a>'; 1519 $install_actions['preview'] .= '<a href="' . wp_customize_url( $stylesheet , $template) . '" class="hide-if-no-customize load-customize>' . __('Customize') . '</a>';1519 $install_actions['preview'] .= '<a href="' . wp_customize_url( $stylesheet ) . '" class="hide-if-no-customize load-customize>' . __('Customize') . '</a>'; 1520 1520 $install_actions['activate'] = '<a href="' . esc_url( $activate_link ) . '" class="activatelink" title="' . esc_attr( sprintf( __('Activate “%s”'), $name ) ) . '">' . __('Activate') . '</a>'; 1521 1521 … … 1580 1580 1581 1581 $update_actions['preview'] = '<a href="' . esc_url( $preview_link ) . '" class="hide-if-customize" title="' . esc_attr(sprintf(__('Preview “%s”'), $name ) ) . '">' . __('Preview') . '</a>'; 1582 $update_actions['preview'] .= '<a href="' . wp_customize_url( $stylesheet , $template) . '" class="hide-if-no-customize load-customize">' . __('Customize') . '</a>';1582 $update_actions['preview'] .= '<a href="' . wp_customize_url( $stylesheet ) . '" class="hide-if-no-customize load-customize">' . __('Customize') . '</a>'; 1583 1583 $update_actions['activate'] = '<a href="' . esc_url( $activate_link ) . '" class="activatelink" title="' . esc_attr( sprintf( __('Activate “%s”'), $name ) ) . '">' . __('Activate') . '</a>'; 1584 1584 -
trunk/wp-admin/themes.php
r20477 r20520 123 123 124 124 <div class="theme-options"> 125 <a href="<?php echo wp_customize_url( $ct->get_stylesheet() , $ct->get_template()); ?>" class="load-customize hide-if-no-customize" title="<?php echo esc_attr( sprintf( __( 'Customize “%s”' ), $ct->display('Name') ) ); ?>"><?php _e( 'Customize' )?></a>125 <a href="<?php echo wp_customize_url( $ct->get_stylesheet() ); ?>" class="load-customize hide-if-no-customize" title="<?php echo esc_attr( sprintf( __( 'Customize “%s”' ), $ct->display('Name') ) ); ?>"><?php _e( 'Customize' )?></a> 126 126 <span><?php _e( 'Options:' )?></span> 127 127 <?php -
trunk/wp-includes/theme.php
r20496 r20520 1601 1601 * @since 3.4.0 1602 1602 */ 1603 function wp_customize_url( $stylesheet , $template) {1603 function wp_customize_url( $stylesheet ) { 1604 1604 return esc_url( admin_url( 'admin.php' ) . '?customize=on&theme=' . $stylesheet ); 1605 1605 }
Note: See TracChangeset
for help on using the changeset viewer.