Make WordPress Core


Ignore:
Timestamp:
11/13/2010 06:26:15 PM (16 years ago)
Author:
scribu
Message:

Revert most of [16018]. See #15032

File:
1 edited

Legend:

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

    r16351 r16352  
    99 */
    1010class WP_Object_Query {
    11 
    12         /**
    13          * Query vars, after parsing
    14          *
    15          * @since 3.1.0
    16          * @access public
    17          * @var array
    18          */
    19         var $query_vars;
    20 
    21         /**
    22          * Retrieve query variable.
    23          *
    24          * @since 3.1.0
    25          * @access public
    26          *
    27          * @param string $query_var Query variable key.
    28          * @return mixed
    29          */
    30         function get( $query_var ) {
    31                 if ( isset( $this->query_vars[$query_var] ) )
    32                         return $this->query_vars[$query_var];
    33 
    34                 return '';
    35         }
    36 
    37         /**
    38          * Set query variable.
    39          *
    40          * @since 3.1.0
    41          * @access public
    42          *
    43          * @param string $query_var Query variable key.
    44          * @param mixed $value Query variable value.
    45          */
    46         function set( $query_var, $value ) {
    47                 $this->query_vars[ $query_var ] = $value;
    48         }
    49 
    5011        /*
    5112         * Populates the $meta_query property
Note: See TracChangeset for help on using the changeset viewer.