Changeset 16352 for trunk/wp-includes/class-wp-object-query.php
- Timestamp:
- 11/13/2010 06:26:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-object-query.php
r16351 r16352 9 9 */ 10 10 class WP_Object_Query { 11 12 /**13 * Query vars, after parsing14 *15 * @since 3.1.016 * @access public17 * @var array18 */19 var $query_vars;20 21 /**22 * Retrieve query variable.23 *24 * @since 3.1.025 * @access public26 *27 * @param string $query_var Query variable key.28 * @return mixed29 */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.041 * @access public42 *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 50 11 /* 51 12 * Populates the $meta_query property
Note: See TracChangeset
for help on using the changeset viewer.