esc_url_raw(admin_url("customize.php")), // Native theme-install.php covers both "browse WordPress.org" and // "Upload Theme" (a button at the top of that same screen) — not // rebuilt here, same reuse-native-flow-for-add pattern as Plugins' // addUrl (plugin-install.php) and Media's newMediaUrl // (media-new.php). "addThemeUrl" => current_user_can("install_themes") ? esc_url_raw(admin_url("theme-install.php")) : "", ]; } ); ScreenHijack::register( "load-widgets.php", "edit_theme_options", "full_admin_takeover", "widgets", "aurora-admin-widgets-root" ); } }