Changeset 20476 for trunk/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 04/16/2012 02:02:28 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/class-wp-upgrader.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r20419 r20476 1508 1508 ), trailingslashit( get_home_url() ) ); 1509 1509 1510 $customize_attributes = 'title="' . esc_attr( sprintf( __( 'Customize “%s”' ), $name ) ) . '"1511 . data-customize-template="' . esc_attr( $template ) . '" data-customize-stylesheet="' . esc_attr( $stylesheet ) . '"';1512 1513 1510 $activate_link = add_query_arg( array( 1514 1511 'action' => 'activate', … … 1519 1516 1520 1517 $install_actions = array(); 1521 $install_actions['preview'] = '<a href="' . esc_url( $preview_link ) . '" class="hide-if- js" title="' . esc_attr(sprintf(__('Preview “%s”'), $name ) ) . '">' . __('Preview') . '</a>';1522 $install_actions['preview'] .= '<a href="#" class="hide-if-no-js load-customize" ' . $customize_attributes . '>' . __('Customize') . '</a>';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 ' . wp_customize_href( $template, $stylesheet ) . ' class="hide-if-no-customize load-customize>' . __('Customize') . '</a>'; 1523 1520 $install_actions['activate'] = '<a href="' . esc_url( $activate_link ) . '" class="activatelink" title="' . esc_attr( sprintf( __('Activate “%s”'), $name ) ) . '">' . __('Activate') . '</a>'; 1524 1521 … … 1575 1572 ), trailingslashit( get_home_url() ) ); 1576 1573 1577 $customize_attributes = 'title="' . esc_attr( sprintf( __( 'Customize “%s”' ), $name ) ) . '"1578 . data-customize-template="' . esc_attr( $template ) . '" data-customize-stylesheet="' . esc_attr( $stylesheet ) . '"';1579 1580 1574 $activate_link = add_query_arg( array( 1581 1575 'action' => 'activate', … … 1585 1579 $activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $template ); 1586 1580 1587 $update_actions['preview'] = '<a href="' . esc_url( $preview_link ) . '" class="hide-if- js" title="' . esc_attr(sprintf(__('Preview “%s”'), $name ) ) . '">' . __('Preview') . '</a>';1588 $update_actions['preview'] .= '<a href="#" class="hide-if-no-js load-customize" ' . $customize_attributes . '>' . __('Customize') . '</a>';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 ' . wp_customize_href( $template, $stylesheet ) . ' class="hide-if-no-customize load-customize">' . __('Customize') . '</a>'; 1589 1583 $update_actions['activate'] = '<a href="' . esc_url( $activate_link ) . '" class="activatelink" title="' . esc_attr( sprintf( __('Activate “%s”'), $name ) ) . '">' . __('Activate') . '</a>'; 1590 1584
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)