- Timestamp:
- 08/30/2018 01:35:27 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-theme-installer-skin.php
r43571 r43598 76 76 77 77 if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { 78 $customize_url = add_query_arg(78 $customize_url = add_query_arg( 79 79 array( 80 80 'theme' => urlencode( $stylesheet ), … … 83 83 admin_url( 'customize.php' ) 84 84 ); 85 $install_actions['preview'] = '<a href="' . esc_url( $customize_url ) . '" class="hide-if-no-customize load-customize"><span aria-hidden="true">' . __( 'Live Preview' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Live Preview “%s”' ), $name ) . '</span></a>'; 85 $install_actions['preview'] = '<a href="' . esc_url( $customize_url ) . '" class="hide-if-no-customize load-customize">'; 86 $install_actions['preview'] .= '<span aria-hidden="true">' . __( 'Live Preview' ) . '</span>'; 87 /* translators: %s: theme name */ 88 $install_actions['preview'] .= '<span class="screen-reader-text">' . sprintf( __( 'Live Preview “%s”' ), $name ) . '</span></a>'; 86 89 } 87 $install_actions['activate'] = '<a href="' . esc_url( $activate_link ) . '" class="activatelink"><span aria-hidden="true">' . __( 'Activate' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Activate “%s”' ), $name ) . '</span></a>'; 90 $install_actions['activate'] = '<a href="' . esc_url( $activate_link ) . '" class="activatelink">'; 91 $install_actions['activate'] .= '<span aria-hidden="true">' . __( 'Activate' ) . '</span>'; 92 /* translators: %s: theme name */ 93 $install_actions['activate'] .= '<span class="screen-reader-text">' . sprintf( __( 'Activate “%s”' ), $name ) . '</span></a>'; 88 94 89 95 if ( is_network_admin() && current_user_can( 'manage_network_themes' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.