Changeset 41326 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 08/31/2017 12:25:14 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r41280 r41326 727 727 * The `$taxonomy` parameter was made optional. 728 728 * 729 * @global wpdb $wpdb WordPress database abstraction object.730 729 * @see sanitize_term_field() The $context param lists the available values for get_term_by() $filter param. 731 730 * … … 837 836 * a WP_Term object if `$output` is `OBJECT`. 838 837 * 839 * @global wpdb $wpdb WordPress database abstraction object.840 838 * @see sanitize_term_field() The $context param lists the available values for get_term_by() $filter param. 841 839 * … … 1047 1045 * @internal The `$deprecated` parameter is parsed for backward compatibility only. 1048 1046 * 1049 * @global wpdb $wpdb WordPress database abstraction object.1050 * @global array $wp_filter1051 *1052 1047 * @param string|array $args Optional. Array or string of arguments. See WP_Term_Query::__construct() 1053 1048 * for information on accepted arguments. Default empty. … … 1059 1054 */ 1060 1055 function get_terms( $args = array(), $deprecated = '' ) { 1061 global $wpdb;1062 1063 1056 $term_query = new WP_Term_Query(); 1064 1057 … … 1855 1848 * @since 4.7.0 Refactored to use WP_Term_Query, and to support any WP_Term_Query arguments. 1856 1849 * 1857 * @global wpdb $wpdb WordPress database abstraction object.1858 *1859 1850 * @param int|array $object_ids The ID(s) of the object(s) to retrieve. 1860 1851 * @param string|array $taxonomies The taxonomies to retrieve terms from. … … 1864 1855 */ 1865 1856 function wp_get_object_terms($object_ids, $taxonomies, $args = array()) { 1866 global $wpdb;1867 1868 1857 if ( empty( $object_ids ) || empty( $taxonomies ) ) 1869 1858 return array(); … … 3887 3876 * @param int $term_id Term ID. 3888 3877 * @return bool Returns false if a term is not shared between multiple taxonomies or 3889 * if splittng shared taxonomy terms is finished. 3878 * if splittng shared taxonomy terms is finished. 3890 3879 */ 3891 3880 function wp_term_is_shared( $term_id ) {
Note: See TracChangeset
for help on using the changeset viewer.