Changeset 752985
- Timestamp:
- 08/07/2013 02:10:15 PM (13 years ago)
- File:
-
- 1 edited
-
kickpress/trunk/kickpress-oauth.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kickpress/trunk/kickpress-oauth.php
r751829 r752985 353 353 hexdec( kickpress_app_hash( 'crc32', $token ) ) ); 354 354 355 $oauth_params = (object) array( 356 'oauth_consumer_key' => $consumer->consumer_key, 357 'oauth_consumer_secret' => $consumer->consumer_secret, 358 'oauth_callback' => $consumer->callback, 359 'oauth_token' => $token, 360 'oauth_token_secret' => $secret 361 ); 362 363 if ( $oauth = get_option( $option, null ) ) { 364 // TODO implement expiration 365 update_option( $option, $oauth_params ); 366 } else { 367 // Must set 'autoload' (forth parameter) to 'no' to save system resources 368 add_option( $option, $oauth_params, '', 'no' ); 369 } 355 // Prevent duplicates 356 delete_option( $option ); 357 358 // TODO implement expiration 359 $oauth_params = (object) array( 360 'oauth_consumer_key' => $consumer->consumer_key, 361 'oauth_consumer_secret' => $consumer->consumer_secret, 362 'oauth_callback' => $consumer->callback, 363 'oauth_token' => $token, 364 'oauth_token_secret' => $secret 365 ); 366 367 // Prevent autoload 368 add_option( $option, $oauth_params, null, 'no' ); 370 369 371 370 die( self::normalize_params( array(
Note: See TracChangeset
for help on using the changeset viewer.