Permalink
Browse files

fix for MS rss feed keys

  • Loading branch information...
1 parent 38090e5 commit 21eb3952ab340feed6f1ce2f56be091011d0683e @benbalter committed with benbalter Sep 11, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 wp-document-revisions.php
@@ -817,6 +817,7 @@ function revision_feed_auth() {
function validate_feed_key() {
global $wpdb;
+
//verify key exists
if ( empty( $_GET['key'] ) )
@@ -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;

0 comments on commit 21eb395

Please sign in to comment.