We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d014774 commit 51e0effCopy full SHA for 51e0eff
src/wp-admin/includes/class-theme-installer-skin.php
@@ -121,7 +121,7 @@ public function after() {
121
122
$install_actions = array();
123
124
- if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
+ if ( current_user_can( 'edit_theme_options' ) && ( $theme_info->is_block_theme() || current_user_can( 'customize' ) ) ) {
125
if ( $theme_info->is_block_theme() ) {
126
$customize_url = add_query_arg(
127
array(
0 commit comments