Changeset 2124147
- Timestamp:
- 07/16/2019 06:50:19 PM (7 years ago)
- Location:
- pinpoll/trunk
- Files:
-
- 5 edited
-
admin/api/pinpoll-api.php (modified) (2 diffs)
-
admin/pinpoll-dashboard.php (modified) (2 diffs)
-
admin/pinpoll-poll-detail.php (modified) (1 diff)
-
pinpoll.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pinpoll/trunk/admin/api/pinpoll-api.php
r1766923 r2124147 509 509 function call_with_refresh_token_and_signin($callback) { 510 510 $response= $callback(); 511 // handle unknown error 512 if (is_wp_error($response)) { 513 $refresh = $this->pinpoll_refresh_sign_in(); 514 if ($refresh['bool']){ 515 return $callback(); 516 } else { 517 printf( '<div class="wrap"><div class="error notice notice-error is-dismissible"> <p> %s </p><p><b>Details:</b></br> %s </p> </div></div>', esc_html__($this->texts['errorfatal'], 'pinpoll'), $response->get_error_message() ); 518 die; 519 } 520 } 511 521 $responseBody = json_decode( wp_remote_retrieve_body( $response ), true ); 512 if(!empty($response) && ($response['response']['code'] != 200)) { 522 if(!empty($response) && is_array($response) && ($response['response']['code'] != 200)) { 523 // handle token expired 513 524 if (!empty($responseBody) && (array_key_exists('error', $responseBody) && $responseBody['error'] === 'token_expired')) { 514 525 $refreshResponse = $this->pinpoll_refresh_token(); … … 517 528 } 518 529 } 530 // handle token invalid 519 531 if( (isset($refreshResponse) && !$refreshResponse['success']) || (!empty($responseBody) && array_key_exists('error', $responseBody) && $responseBody['error'] === 'token_invalid')) { 520 532 $refresh = $this->pinpoll_refresh_sign_in(); -
pinpoll/trunk/admin/pinpoll-dashboard.php
r1895186 r2124147 69 69 </h2> 70 70 <div class="pp-inside"> 71 <h1><span class="pp-count-votes"><?php printf( $data['body']['votes'] ); ?></span></h1>71 <h1><span class="pp-count-votes"><?php if(isset($data['body']['votes'])) printf( $data['body']['votes'] ); ?></span></h1> 72 72 <small><?php printf( $texts['votestotal'] ); ?></small> 73 73 </div> … … 126 126 <div class="pp-inside"> 127 127 <div class="main"> 128 <h1><span class="pp-count-votes"><?php printf( $data['body']['votes_month'] ); ?></span></h1>128 <h1><span class="pp-count-votes"><?php if(isset($data['body']['votes_month'])) printf( $data['body']['votes_month'] ); ?></span></h1> 129 129 <small><?php printf( $texts['votestotal'] ); ?></small> 130 130 </div> -
pinpoll/trunk/admin/pinpoll-poll-detail.php
r1953203 r2124147 220 220 </h2> 221 221 <div class="pp-details-inside"> 222 <div data-pinpoll-id="<?php printf( $id ); ?>" <?php (PINPOLL_JS_URL!=='https://pinpoll.com') ? printf("data-location=\"". PINPOLL_JS_URL. "\"") : printf("") ?> data- trackmode="preview" data-cdn=""></div>222 <div data-pinpoll-id="<?php printf( $id ); ?>" <?php (PINPOLL_JS_URL!=='https://pinpoll.com') ? printf("data-location=\"". PINPOLL_JS_URL. "\"") : printf("") ?> data-editmode="on" data-cdn=""></div> 223 223 </div> 224 224 </div> -
pinpoll/trunk/pinpoll.php
r1953203 r2124147 12 12 * Domain Path: /lang 13 13 * Description: Create fun polls & understand your audience! 14 * Version: 3.0.1 414 * Version: 3.0.15 15 15 * Min WP Version: 3.3.0 16 16 * Author: Pinpoll -
pinpoll/trunk/readme.txt
r1953203 r2124147 4 4 Tags: free, marketing, survey, poll, analytics, feedback, advertising, polls, user engagement, engagement, content generation, analysis, polling, statistics, stats, retargeting, remarketing, profiling, opinion, advertise, audience, conversion, recommendation, page impressions, ads, secure, responsive, mobile responsive, mobile, quiz, quizzes, feedback, customer satisfaction, lead, lead generation, support 5 5 Requires at least: 3.3.0 6 Tested up to: 4.9.26 Tested up to: 5.2.2 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 173 173 = 3.0.14 = 174 174 * Fixed error on poll detail page 175 176 = 3.0.15 = 177 * Improved error handling 178 * Fixed Edit-Poll Bug
Note: See TracChangeset
for help on using the changeset viewer.