WordPress.org

Make WordPress Core

Ticket #4167: 4167.diff

File 4167.diff, 2.1 KB (added by johnbillion, 7 years ago)

Replace references to get_settings with get_option

  • wp-includes/query.php

     
    10601060                        $cwhere = apply_filters('comment_feed_where', $cwhere); 
    10611061                        $cgroupby = apply_filters('comment_feed_groupby', $cgroupby); 
    10621062 
    1063                         $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')); 
     1063                        $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')); 
    10641064                        $this->comment_count = count($this->comments); 
    10651065 
    10661066                        $post_ids = array(); 
     
    10991099                if ( $this->is_comment_feed && $this->is_singular ) { 
    11001100                        $cjoin = apply_filters('comment_feed_join', ''); 
    11011101                        $cwhere = apply_filters('comment_feed_where', "WHERE comment_post_ID = {$this->posts[0]->ID} AND comment_approved = '1'"); 
    1102                         $comments_request = "SELECT $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere ORDER BY comment_date_gmt DESC LIMIT " . get_settings('posts_per_rss'); 
     1102                        $comments_request = "SELECT $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere ORDER BY comment_date_gmt DESC LIMIT " . get_option('posts_per_rss'); 
    11031103                        $this->comments = $wpdb->get_results($comments_request); 
    11041104                        $this->comment_count = count($this->comments); 
    11051105                } 
  • wp-login.php

     
    195195        } else { 
    196196                // send a copy of password change notification to the admin 
    197197                // but check to see if it's the admin whose password we're changing, and skip this 
    198                 if ($user->user_email != get_settings('admin_email')) { 
     198                if ($user->user_email != get_option('admin_email')) { 
    199199                        $message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n"; 
    200200                        wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), get_option('blogname')), $message); 
    201201                }