Make WordPress Core

Changeset 33645


Ignore:
Timestamp:
08/19/2015 10:34:51 AM (9 years ago)
Author:
dd32
Message:

Fix PHP notice after [33492] when updating themes.

Props bobbingwide.
See #33208.
Fixes #33427.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader-skins.php

    r33519 r33645  
    740740            } elseif ( current_user_can( 'switch_themes' ) ) {
    741741                if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
    742                     $update_actions['preview'] .= '<a href="' . wp_customize_url( $stylesheet ) . '" class="hide-if-no-customize load-customize"><span aria-hidden="true">' . __( 'Live Preview' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Live Preview &#8220;%s&#8221;' ), $name ) . '</span></a>';
     742                    $update_actions['preview'] = '<a href="' . wp_customize_url( $stylesheet ) . '" class="hide-if-no-customize load-customize"><span aria-hidden="true">' . __( 'Live Preview' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Live Preview &#8220;%s&#8221;' ), $name ) . '</span></a>';
    743743                }
    744744                $update_actions['activate'] = '<a href="' . esc_url( $activate_link ) . '" class="activatelink"><span aria-hidden="true">' . __( 'Activate' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Activate &#8220;%s&#8221;' ), $name ) . '</span></a>';
Note: See TracChangeset for help on using the changeset viewer.