Changeset 9107 for sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/meetup/class-meetup-oauth2-client.php
- Timestamp:
- 08/17/2019 12:35:04 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/meetup/class-meetup-oauth2-client.php
r9105 r9107 97 97 ), 98 98 ) ); 99 100 // Pre-cache the oauth token. 101 $this->get_oauth_token(); 99 102 } 100 103 … … 308 311 309 312 return $oauth_token; 313 } 314 315 /** 316 * Un-cache any existing oauth token and request a new one. 317 * 318 * This also resets the error property so that it has a clean slate when it attempts to request a new token. 319 * 320 * Useful if a token stops working during a batch of requests :/ 321 * 322 * @return void 323 */ 324 public function reset_oauth_token() { 325 delete_site_option( self::SITE_OPTION_KEY_OAUTH ); 326 327 $this->oauth_token = array(); 328 $this->error = new WP_Error(); 329 330 $this->get_oauth_token(); 310 331 } 311 332
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)