Changeset 30622
- Timestamp:
- 11/28/2014 12:26:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r30585 r30622 675 675 * 676 676 * We store this data in a flat array because they are referenced in a 677 * number of places by WP_Query.677 * number of places by {@see WP_Query}. 678 678 * 679 679 * @since 4.1.0 … … 693 693 694 694 /** 695 * Column in primary_tablethat represents the ID of the object.695 * Column in 'primary_table' that represents the ID of the object. 696 696 * 697 697 * @since 4.1.0 … … 705 705 * 706 706 * @since 3.1.0 707 * @since 4.1.0 Added support for $operator 'NOT EXISTS' and 'EXISTS'.707 * @since 4.1.0 Added support for `$operator` 'NOT EXISTS' and 'EXISTS' values. 708 708 * @access public 709 709 * … … 739 739 740 740 /** 741 * Ensure the `tax_query`argument passed to the class constructor is well-formed.741 * Ensure the 'tax_query' argument passed to the class constructor is well-formed. 742 742 * 743 743 * Ensures that each query-level clause has a 'relation' key, and that 744 * each first-order clause contains all the necessary keys from $defaults.744 * each first-order clause contains all the necessary keys from `$defaults`. 745 745 * 746 746 * @since 4.1.0 747 747 * @access public 748 748 * 749 * @param 749 * @param array $queries Array of queries clauses. 750 750 * @return array Sanitized array of query clauses. 751 751 */ … … 842 842 * @access protected 843 843 * 844 * @param 845 * @return bool 844 * @param array $query Tax query arguments. 845 * @return bool Whether the query clause is a first-order clause. 846 846 */ 847 847 protected static function is_first_order_clause( $query ) { … … 911 911 * @access protected 912 912 * 913 * @param array $query Query to parse .913 * @param array $query Query to parse, passed by reference. 914 914 * @param int $depth Optional. Number of tree levels deep we currently are. 915 * Used to calculate indentation.915 * Used to calculate indentation. Default 0. 916 916 * @return array { 917 917 * Array containing JOIN and WHERE SQL clauses to append to a single query array. … … 988 988 989 989 /** 990 * Generate SQL JOIN and WHERE clauses for a first-orderquery clause.990 * Generate SQL JOIN and WHERE clauses for a "first-order" query clause. 991 991 992 992 * @since 4.1.0 993 993 * @access public 994 994 * 995 * @param array $clause Query clause.996 * @param 995 * @param array $clause Query clause, passed by reference 996 * @param array $parent_query Parent query array. 997 997 * @return array { 998 998 * Array containing JOIN and WHERE SQL clauses to append to a first-order query. … … 1106 1106 * We avoid unnecessary table joins by allowing each clause to look for 1107 1107 * an existing table alias that is compatible with the query that it 1108 * needs to perform. An existing alias is compatible if (a) it is a 1109 * sibling of $clause (ie, it's under the scope of the same relation), 1110 * and (b) the combination of operator and relation between the clauses 1111 * allows for a shared table join. In the case of WP_Tax_Query, this 1112 * only applies to IN clauses that are connected by the relation OR. 1108 * needs to perform. 1109 * 1110 * An existing alias is compatible if (a) it is a sibling of `$clause` 1111 * (ie, it's under the scope of the same relation), and (b) the combination 1112 * of operator and relation between the clauses allows for a shared table 1113 * join. In the case of {@see WP_Tax_Query}, this only applies to 'IN' 1114 * clauses that are connected by the relation 'OR'. 1113 1115 * 1114 1116 * @since 4.1.0 1115 1117 * @access protected 1116 1118 * 1117 * @param 1118 * @param 1119 * @param array $clause Query clause. 1120 * @param array $parent_query Parent query of $clause. 1119 1121 * @return string|bool Table alias if found, otherwise false. 1120 1122 */ … … 2429 2431 * @since 4.1.0 2430 2432 * 2431 * @param int $term Term ID2432 * @param string $taxonomy Taxonomy Name 2433 * @param int $term Term ID. 2434 * @param string $taxonomy Taxonomy Name. 2433 2435 */ 2434 2436 do_action( 'pre_delete_term', $term, $taxonomy ); … … 4331 4333 * 4332 4334 * @since 3.1.0 4333 * @since 4.1.0 Introduced the 'resource_type' parameter. 4334 * 4335 * @param int $object_id The ID of the object. 4336 * @param string $object_type The type of object for which we'll be retrieving ancestors. 4337 * Accepts a post type or a taxonomy name. 4338 * @param string $resource_type Optional. Type of resource $object_type is. Accepts 'post_type' or 'taxonomy'. 4335 * @since 4.1.0 Introduced the `$resource_type` argument. 4336 * 4337 * @param int $object_id Optional. The ID of the object. Default 0. 4338 * @param string $object_type Optional. The type of object for which we'll be retrieving 4339 * ancestors. Accepts a post type or a taxonomy name. Default empty. 4340 * @param string $resource_type Optional. Type of resource $object_type is. Accepts 'post_type' 4341 * or 'taxonomy'. Default empty. 4339 4342 * @return array An array of ancestors from lowest to highest in the hierarchy. 4340 4343 */
Note: See TracChangeset
for help on using the changeset viewer.