Changeset 16352 for trunk/wp-includes/query.php
- Timestamp:
- 11/13/2010 06:26:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r16303 r16352 690 690 */ 691 691 class WP_Query extends WP_Object_Query { 692 /** 693 * Initial query vars 692 693 /** 694 * Query vars set by the user 694 695 * 695 696 * @since 1.5.0 … … 698 699 */ 699 700 var $query; 701 702 /** 703 * Query vars, after parsing 704 * 705 * @since 1.5.0 706 * @access public 707 * @var array 708 */ 709 var $query_vars = array(); 700 710 701 711 /** … … 1605 1615 1606 1616 /** 1617 * Retrieve query variable. 1618 * 1619 * @since 1.5.0 1620 * @access public 1621 * 1622 * @param string $query_var Query variable key. 1623 * @return mixed 1624 */ 1625 function get($query_var) { 1626 if ( isset($this->query_vars[$query_var]) ) 1627 return $this->query_vars[$query_var]; 1628 1629 return ''; 1630 } 1631 1632 /** 1633 * Set query variable. 1634 * 1635 * @since 1.5.0 1636 * @access public 1637 * 1638 * @param string $query_var Query variable key. 1639 * @param mixed $value Query variable value. 1640 */ 1641 function set($query_var, $value) { 1642 $this->query_vars[$query_var] = $value; 1643 } 1644 1645 /** 1607 1646 * Retrieve the posts based on query variables. 1608 1647 *
Note: See TracChangeset
for help on using the changeset viewer.