PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.4.3
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.4.3
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | includes/API/Profile.php +3 -3 3.0.33.4.3 View file →
@@ -77,9 +77,9 @@
77 77 ];
78 78
79 79 $response = $this->http()->query( 'isVerifiedUser', '', $funcArgs )->post();
80 80
81 - if ( $response ) {
81 + if ( $response && !is_wp_error( $response ) ) {
82 82 $user = $this->utils( 'options' )->get( 'user' );
83 83
84 84 $user['is_verified'] = true;
85 85 $this->utils( 'options' )->set( 'user', $user );
@@ -98,9 +98,9 @@
98 98 "page" => $page
99 99 ] )->post();
100 100
101 101 if ( is_wp_error( $response ) ) {
102 - return $this->error( 'invalid_download_history_response', __( $response->get_error_message(), 'templately' ), 'profile/download-history', $response->get_error_code() );
102 + return $this->error( 'invalid_download_history_response', __( $response->get_error_message(), 'templately' ), 'profile/download-history' );
103 103 }
104 104
105 105 if ( isset( $response['total'] ) ) {
106 106 $this->utils( 'options' )->set( 'total_download_counts', $response['total'] );
@@ -129,9 +129,9 @@
129 129
130 130 $response = $this->http()->mutation( 'myFavouriteItem', 'total_page, current_page, data { id, name, rating, type, slug, favourite_count, thumbnail, thumbnail2, thumbnail3, price, author{ display_name, name, joined }, dependencies{ id, name, icon, plugin_file, plugin_original_slug, is_pro, link } }', $funcArgs )->post();
131 131
132 132 if ( is_wp_error( $response ) ) {
133 - return $this->error( 'invalid_my_favourites_response', __( $response->get_error_message(), 'templately' ), 'profile/my-favourites', $response->get_error_code() );
133 + return $this->error( 'invalid_my_favourites_response', __( $response->get_error_message(), 'templately' ), 'profile/my-favourites' );
134 134 }
135 135
136 136 return $response;
137 137 }