Skip to content

Commit

Permalink
Also delete request tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnynews committed Nov 24, 2023
1 parent 5788cd7 commit 2fcb4c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/class-wp-rest-oauth1-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected static function get_type() {
*/
public function delete() {
global $wpdb;
$results = $wpdb->get_results( "SELECT * FROM $wpdb->options WHERE option_name LIKE 'oauth1_access_%'", ARRAY_A );
$results = $wpdb->get_results( "SELECT * FROM $wpdb->options WHERE option_name LIKE 'oauth1_access_%' OR option_name LIKE 'oauth1_request_%'", ARRAY_A );
$delete_option = array();
foreach ( $results as $result ) {
$row = unserialize( $result['option_value'] );
Expand Down

0 comments on commit 2fcb4c7

Please sign in to comment.