PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / 4.4.1
MainWP Dashboard: Self-hosted WordPress Management for Agencies v4.4.1
6.2 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1 6.0.12 6.0.11 4.6.0.1 5.0 5.0.1 5.0.2 5.0.3 5.0.3.1 5.0.3.2 5.1 5.1.1 5.2 5.2.1 5.2.2 5.3 All 153 releases
← All changes | class/class-mainwp-api-handler.php +6 -5 5.04.4.1 View file →
@@ -60,11 +60,11 @@
60 60 $bulk_checks = array();
61 61
62 62 foreach ( $check_exts as $ext_name => $ext ) {
63 63 $bulk_checks[ $ext_name ] = $ext;
64 - ++$i;
65 - ++$count;
66 - if ( $count === $max_check || $i === $total_check ) {
64 + $i++;
65 + $count++;
66 + if ( $count == $max_check || $i == $total_check ) {
67 67 $results = MainWP_Api_Manager_Plugin_Update::instance()->bulk_update_check( $bulk_checks ); // bulk check response array of info.
68 68 if ( is_array( $results ) && 0 < count( $results ) ) {
69 69 foreach ( $results as $slug => $response ) {
70 70 if ( ! is_array( $response ) || ! isset( $response['new_version'] ) ) {
@@ -105,9 +105,9 @@
105 105
106 106 $extensions = MainWP_Extensions_Handler::get_extensions();
107 107 $rslt = null;
108 108 foreach ( $extensions as $ext ) {
109 - if ( isset( $ext['api'] ) && ( $pSlug === $ext['api'] ) && isset( $ext['apiManager'] ) && ! empty( $ext['apiManager'] ) ) {
109 + if ( isset( $ext['api'] ) && ( $pSlug == $ext['api'] ) && isset( $ext['apiManager'] ) && ! empty( $ext['apiManager'] ) ) {
110 110 $args = array();
111 111 $args['plugin_name'] = $ext['api'];
112 112 $args['version'] = $ext['version'];
113 113 $args['product_id'] = $ext['product_id'];
@@ -146,9 +146,9 @@
146 146 public static function get_update_information( $pSlug ) {
147 147 $extensions = MainWP_Extensions_Handler::get_extensions();
148 148 $rslt = null;
149 149 foreach ( $extensions as $ext ) {
150 - if ( isset( $ext['api'] ) && $pSlug === $ext['api'] && isset( $ext['apiManager'] ) && ! empty( $ext['apiManager'] ) ) {
150 + if ( isset( $ext['api'] ) && $pSlug == $ext['api'] && isset( $ext['apiManager'] ) && ! empty( $ext['apiManager'] ) ) {
151 151 $args = array();
152 152 $args['plugin_name'] = $ext['api'];
153 153 $args['version'] = $ext['version'];
154 154 $args['product_id'] = $ext['product_id'];
@@ -160,5 +160,6 @@
160 160 }
161 161 }
162 162 return $rslt;
163 163 }
164 +
164 165 }