mirror of
git://develop.git.wordpress.org/
synced 2025-03-23 21:39:50 +01:00
Themes: Remove the Live Preview link when installing a block theme from a zip archive.
This changeset removes the Live Preview link for block-based themes when installing for a zip archive, since the customizer is disabled by default for block themes. Follow-up to [52353]. Props alanjacobmathew, hellofromTonya, antonvlasenko, ironprogrammer. Fixes #54578. git-svn-id: https://develop.svn.wordpress.org/trunk@52802 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d551051982
commit
b00eda0e0f
@ -115,7 +115,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||
|
||||
$install_actions = array();
|
||||
|
||||
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
|
||||
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) && ! $theme_info->is_block_theme() ) {
|
||||
$customize_url = add_query_arg(
|
||||
array(
|
||||
'theme' => urlencode( $stylesheet ),
|
||||
|
Loading…
x
Reference in New Issue
Block a user