PluginProbe
HubSpot All-In-One Marketing – Forms, Popups, Live Chat / 11.3.75
HubSpot All-In-One Marketing – Forms, Popups, Live Chat v11.3.75
11.3.75 11.3.73 11.3.71 11.3.70 11.3.69 11.3.64 11.3.65 11.3.62 11.3.61 11.3.56 11.3.58 11.0.31 11.0.52 11.0.54 11.0.56 11.0.58 11.0.7 11.1.10 11.1.11 11.1.13 11.1.14 11.1.15 11.1.2 11.1.20 11.1.21 All 73 releases
← All changes | public/admin/class-connection.php +6 -3 11.0.5611.3.75 View file →
@@ -30,10 +30,8 @@
30 30 public static function is_connected() {
31 31 return ! empty( Portal_Options::get_portal_id() ) && ! empty( OAuth::get_refresh_token() );
32 32 }
33 33
34 -
35 -
36 34 /**
37 35 * Returns true if the current request is for the plugin to connect to a portal
38 36 */
39 37 public static function is_connection_requested() {
@@ -122,9 +120,12 @@
122 120 Portal_Options::set_last_disconnect_time();
123 121
124 122 self::delete_portal_info();
125 123
126 - $users = get_users( array( 'fields' => array( 'ID' ) ) );
124 + $users = get_users(
125 + array( 'role__in' => array( 'administrator', 'editor' ) ),
126 + array( 'fields' => array( 'ID' ) )
127 + );
127 128 foreach ( $users as $user ) {
128 129 delete_user_meta( $user->ID, 'leadin_email' );
129 130 delete_user_meta( $user->ID, 'leadin_skip_review' );
130 131 delete_user_meta( $user->ID, 'leadin_review_banner_last_call' );
@@ -148,8 +149,9 @@
148 149 Portal_Options::set_account_name( $portal_name );
149 150 Portal_Options::set_portal_domain( $portal_domain );
150 151 Portal_Options::set_hublet( $hublet );
151 152 Portal_Options::set_disable_internal_tracking();
153 + Portal_Options::set_proxy_mappings_enabled(false);
152 154 }
153 155
154 156 /**
155 157 * Delete stored portal metadata for disconnecting the plugin from the options table
@@ -160,6 +162,7 @@
160 162 Portal_Options::delete_portal_domain();
161 163 Portal_Options::delete_hublet();
162 164 Portal_Options::delete_disable_internal_tracking();
163 165 Portal_Options::delete_business_unit_id();
166 + Portal_Options::delete_proxy_mappings_enabled();
164 167 }
165 168 }