- 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-upgrader-skin.php
r43571 r43598 66 66 if ( get_stylesheet() == $stylesheet ) { 67 67 if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { 68 $update_actions['preview'] = '<a href="' . esc_url( $customize_url ) . '" class="hide-if-no-customize load-customize"><span aria-hidden="true">' . __( 'Customize' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Customize “%s”' ), $name ) . '</span></a>'; 68 $update_actions['preview'] = '<a href="' . esc_url( $customize_url ) . '" class="hide-if-no-customize load-customize">'; 69 $update_actions['preview'] .= '<span aria-hidden="true">' . __( 'Customize' ) . '</span>'; 70 /* translators: %s: theme name */ 71 $update_actions['preview'] .= '<span class="screen-reader-text">' . sprintf( __( 'Customize “%s”' ), $name ) . '</span></a>'; 69 72 } 70 73 } elseif ( current_user_can( 'switch_themes' ) ) { 71 74 if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { 72 $update_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>'; 75 $update_actions['preview'] = '<a href="' . esc_url( $customize_url ) . '" class="hide-if-no-customize load-customize">'; 76 $update_actions['preview'] .= '<span aria-hidden="true">' . __( 'Live Preview' ) . '</span>'; 77 /* translators: %s: theme name */ 78 $update_actions['preview'] .= '<span class="screen-reader-text">' . sprintf( __( 'Live Preview “%s”' ), $name ) . '</span></a>'; 73 79 } 74 $update_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>'; 80 $update_actions['activate'] = '<a href="' . esc_url( $activate_link ) . '" class="activatelink">'; 81 $update_actions['activate'] .= '<span aria-hidden="true">' . __( 'Activate' ) . '</span>'; 82 /* translators: %s: theme name */ 83 $update_actions['activate'] .= '<span class="screen-reader-text">' . sprintf( __( 'Activate “%s”' ), $name ) . '</span></a>'; 75 84 } 76 85
Note: See TracChangeset
for help on using the changeset viewer.