Make WordPress Core


Ignore:
Timestamp:
08/30/2006 09:46:31 PM (18 years ago)
Author:
ryan
Message:

Use get_option instead of get_settings. Just 'cause.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r4133 r4144  
    546546        $post_type = $q['post_type'];
    547547        if ( !isset($q['posts_per_page']) || $q['posts_per_page'] == 0 )
    548             $q['posts_per_page'] = get_settings('posts_per_page');
     548            $q['posts_per_page'] = get_option('posts_per_page');
    549549        if ( !isset($q['what_to_show']) )
    550             $q['what_to_show'] = get_settings('what_to_show');
     550            $q['what_to_show'] = get_option('what_to_show');
    551551        if ( isset($q['showposts']) && $q['showposts'] ) {
    552552            $q['showposts'] = (int) $q['showposts'];
     
    563563        }
    564564        if ( $this->is_feed ) {
    565             $q['posts_per_page'] = get_settings('posts_per_rss');
     565            $q['posts_per_page'] = get_option('posts_per_rss');
    566566            $q['what_to_show'] = 'posts';
    567567        }
     
    584584        }
    585585
    586         $add_hours = intval(get_settings('gmt_offset'));
    587         $add_minutes = intval(60 * (get_settings('gmt_offset') - $add_hours));
     586        $add_hours = intval(get_option('gmt_offset'));
     587        $add_minutes = intval(60 * (get_option('gmt_offset') - $add_hours));
    588588        $wp_posts_post_date_field = "post_date"; // "DATE_ADD(post_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)";
    589589
Note: See TracChangeset for help on using the changeset viewer.