PluginProbe
Property Hive / 2.4.0
Property Hive v2.4.0
2.4.0 2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 All 262 releases
← All changes | includes/admin/class-ph-admin.php +3 -2 2.3.02.4.0 View file →
@@ -670,8 +670,9 @@
670 670 include_once( 'ph-meta-box-functions.php' );
671 671
672 672 // Classes
673 673 include_once( 'class-ph-admin-post-types.php' );
674 + include_once( 'class-ph-admin-onboarding.php' );
674 675 include_once( dirname(PH_PLUGIN_FILE) . '/includes/class-ph-ai-service.php' );
675 676
676 677 // Classes we only need if the ajax is not-ajax
677 678 if ( ! is_ajax() ) {
@@ -950,13 +951,13 @@
950 951 delete_transient( '_ph_activation_redirect' );
951 952
952 953 // Don't do redirect if part of multisite, doing batch-activate, or if no permission
953 954 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only admin list display or query; no state change.
954 - if ( is_network_admin() || isset( $_GET['activate-multi'] ) || ! current_user_can( 'manage_propertyhive' ) ) {
955 + if ( is_network_admin() || isset( $_GET['activate-multi'] ) || ! current_user_can( 'manage_options' ) ) {
955 956 return;
956 957 }
957 958
958 - wp_safe_redirect( admin_url( 'index.php?page=ph-installed' ) );
959 + wp_safe_redirect( admin_url( 'index.php?page=ph-onboarding' ) );
959 960 exit;
960 961 }
961 962 }
962 963