From ceb60d8af8d59b421ddff9decc4e3b576651acff Mon Sep 17 00:00:00 2001 From: rob1n Date: Thu, 19 Apr 2007 02:53:19 +0000 Subject: [PATCH] Replace deprecated get_settings() calls with get_option(). Props johnbillion. fixes #4167 git-svn-id: http://svn.automattic.com/wordpress/trunk@5285 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/query.php | 4 ++-- wp-login.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index d2964ca5a3..67bfa16cea 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -1060,7 +1060,7 @@ class WP_Query { $cwhere = apply_filters('comment_feed_where', $cwhere); $cgroupby = apply_filters('comment_feed_groupby', $cgroupby); - $this->comments = (array) $wpdb->get_results("SELECT $distinct $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere $cgroupby ORDER BY comment_date_gmt DESC LIMIT " . get_settings('posts_per_rss')); + $this->comments = (array) $wpdb->get_results("SELECT $distinct $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere $cgroupby ORDER BY comment_date_gmt DESC LIMIT " . get_option('posts_per_rss')); $this->comment_count = count($this->comments); $post_ids = array(); @@ -1099,7 +1099,7 @@ class WP_Query { if ( $this->is_comment_feed && $this->is_singular ) { $cjoin = apply_filters('comment_feed_join', ''); $cwhere = apply_filters('comment_feed_where', "WHERE comment_post_ID = {$this->posts[0]->ID} AND comment_approved = '1'"); - $comments_request = "SELECT $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere ORDER BY comment_date_gmt DESC LIMIT " . get_settings('posts_per_rss'); + $comments_request = "SELECT $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere ORDER BY comment_date_gmt DESC LIMIT " . get_option('posts_per_rss'); $this->comments = $wpdb->get_results($comments_request); $this->comment_count = count($this->comments); } diff --git a/wp-login.php b/wp-login.php index e69d559a58..5acae16289 100644 --- a/wp-login.php +++ b/wp-login.php @@ -195,7 +195,7 @@ case 'rp' : } else { // send a copy of password change notification to the admin // but check to see if it's the admin whose password we're changing, and skip this - if ($user->user_email != get_settings('admin_email')) { + if ($user->user_email != get_option('admin_email')) { $message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n"; wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), get_option('blogname')), $message); }