Make WordPress Core


Ignore:
Timestamp:
10/27/2010 06:16:52 PM (16 years ago)
Author:
scribu
Message:

Move get() and set() methods from WP_Query to WP_Object_Query. See #15032

File:
1 edited

Legend:

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

    r15843 r16018  
    193193}
    194194
     195/**
     196 * WordPress Comment Query class.
     197 *
     198 * @since 3.1.0
     199 */
    195200class WP_Comment_Query extends WP_Object_Query {
    196201
    197         function query( $args ) {
     202        /**
     203         * Execute the query
     204         *
     205         * @since 3.1.0
     206         *
     207         * @param string|array $query_vars
     208         * @return int|array
     209         */
     210        function query( $query_vars ) {
    198211                global $wpdb;
    199212
    … …  
    216229                );
    217230
    218                 $args = wp_parse_args( $args, $defaults );
    219                 extract( $args, EXTR_SKIP );
     231                $this->query_vars = wp_parse_args( $query_vars, $defaults );
     232
     233                extract( $this->query_vars, EXTR_SKIP );
    220234
    221235                // $args can be whatever, only use the args defined in defaults to compute the key
Note: See TracChangeset for help on using the changeset viewer.