Skip to content

Commit

Permalink
fix for MS rss feed keys
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter authored and benbalter committed Sep 11, 2011
1 parent 38090e5 commit 21eb395
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wp-document-revisions.php
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ function revision_feed_auth() {
function validate_feed_key() {

global $wpdb;


//verify key exists
if ( empty( $_GET['key'] ) )
Expand All @@ -830,7 +831,7 @@ function validate_feed_key() {
return false;

//lookup key
if ( $wpdb->get_var( $wpdb->prepare( "SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value = %s", 'wp_' . self::$meta_key, $key ) ) )
if ( $wpdb->get_var( $wpdb->prepare( "SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value = %s", $wpdb->prefix . self::$meta_key, $key ) ) )
return true;

return false;
Expand Down

0 comments on commit 21eb395

Please sign in to comment.