Unified the check for presence of WC Admin.

This commit is contained in:
Peter Fabian 2020-02-03 18:04:18 +01:00
parent aa8e8992cc
commit 04c4732e13
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ class WC_Admin_Setup_Wizard {
* Redirects to the onboarding wizard in WooCommerce Admin.
*/
private function wc_setup_redirect_to_wc_admin_onboarding() {
if ( ! function_exists( 'wc_admin_url' ) ) {
if ( ! $this->is_wc_admin_included_in_wc() ) {
return;
}