Skip to content

Commit 51e0eff

Browse files
committed
Themes: Add is block theme check installer.
Add the is block theme check in installer check. See #64159.
1 parent d014774 commit 51e0eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/includes/class-theme-installer-skin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function after() {
121121

122122
$install_actions = array();
123123

124-
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
124+
if ( current_user_can( 'edit_theme_options' ) && ( $theme_info->is_block_theme() || current_user_can( 'customize' ) ) ) {
125125
if ( $theme_info->is_block_theme() ) {
126126
$customize_url = add_query_arg(
127127
array(

0 commit comments

Comments
 (0)