mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
Fix PHP notice after [33492].
props jesin. see #33178. fixes #33208. git-svn-id: https://develop.svn.wordpress.org/trunk@33519 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
038e2e2e4f
commit
2ebc63579c
@ -660,7 +660,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||
$install_actions = array();
|
||||
|
||||
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
|
||||
$install_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 “%s”' ), $name ) . '</span></a>';
|
||||
$install_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 “%s”' ), $name ) . '</span></a>';
|
||||
}
|
||||
$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>';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user