Changeset 43571 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r43570 r43571 59 59 60 60 register_taxonomy( 61 'category', 'post', array( 61 'category', 62 'post', 63 array( 62 64 'hierarchical' => true, 63 65 'query_var' => 'category_name', … … 80 82 81 83 register_taxonomy( 82 'post_tag', 'post', array( 84 'post_tag', 85 'post', 86 array( 83 87 'hierarchical' => false, 84 88 'query_var' => 'tag', … … 101 105 102 106 register_taxonomy( 103 'nav_menu', 'nav_menu_item', array( 107 'nav_menu', 108 'nav_menu_item', 109 array( 104 110 'public' => false, 105 111 'hierarchical' => false, … … 117 123 118 124 register_taxonomy( 119 'link_category', 'link', array( 125 'link_category', 126 'link', 127 array( 120 128 'hierarchical' => false, 121 129 'labels' => array( … … 149 157 150 158 register_taxonomy( 151 'post_format', 'post', array( 159 'post_format', 160 'post', 161 array( 152 162 'public' => true, 153 163 'hierarchical' => false, … … 1868 1878 foreach ( $object_ids as $object_id ) { 1869 1879 $terms = wp_get_object_terms( 1870 $object_id, $taxonomy, array( 1880 $object_id, 1881 $taxonomy, 1882 array( 1871 1883 'fields' => 'ids', 1872 1884 'orderby' => 'none', … … 2201 2213 2202 2214 wp_update_term( 2203 $alias->term_id, $taxonomy, array( 2215 $alias->term_id, 2216 $taxonomy, 2217 array( 2204 2218 'term_group' => $term_group, 2205 2219 ) … … 2213 2227 */ 2214 2228 $name_matches = get_terms( 2215 $taxonomy, array( 2229 $taxonomy, 2230 array( 2216 2231 'name' => $name, 2217 2232 'hide_empty' => false, … … 2240 2255 if ( is_taxonomy_hierarchical( $taxonomy ) ) { 2241 2256 $siblings = get_terms( 2242 $taxonomy, array( 2257 $taxonomy, 2258 array( 2243 2259 'get' => 'all', 2244 2260 'parent' => $parent, … … 2451 2467 if ( ! $append ) { 2452 2468 $old_tt_ids = wp_get_object_terms( 2453 $object_id, $taxonomy, array( 2469 $object_id, 2470 $taxonomy, 2471 array( 2454 2472 'fields' => 'tt_ids', 2455 2473 'orderby' => 'none', … … 2500 2518 do_action( 'add_term_relationship', $object_id, $tt_id, $taxonomy ); 2501 2519 $wpdb->insert( 2502 $wpdb->term_relationships, array( 2520 $wpdb->term_relationships, 2521 array( 2503 2522 'object_id' => $object_id, 2504 2523 'term_taxonomy_id' => $tt_id, … … 2891 2910 2892 2911 wp_update_term( 2893 $alias->term_id, $taxonomy, array( 2912 $alias->term_id, 2913 $taxonomy, 2914 array( 2894 2915 'term_group' => $term_group, 2895 2916 ) … … 3403 3424 3404 3425 $terms = wp_get_object_terms( 3405 $ids, $taxonomies, array( 3426 $ids, 3427 $taxonomies, 3428 array( 3406 3429 'fields' => 'all_with_object_id', 3407 3430 'orderby' => 'name', … … 3477 3500 $children = array(); 3478 3501 $terms = get_terms( 3479 $taxonomy, array( 3502 $taxonomy, 3503 array( 3480 3504 'get' => 'all', 3481 3505 'orderby' => 'id', … … 4327 4351 4328 4352 $args = wp_parse_args( 4329 $args, array( 4353 $args, 4354 array( 4330 4355 /* translators: %s: taxonomy label, %l: list of terms formatted as per $term_template */ 4331 4356 'template' => __( '%s: %l.' ),
Note: See TracChangeset
for help on using the changeset viewer.