Changeset 49108 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r49043 r49108 1049 1049 } 1050 1050 1051 $term_id = intval( $term_id );1051 $term_id = (int) $term_id; 1052 1052 1053 1053 $terms = _get_term_hierarchy( $taxonomy ); … … 3491 3491 foreach ( $_term_ids as $term_id ) { 3492 3492 if ( is_numeric( $term_id ) ) { 3493 $term_ids[] = intval( $term_id );3493 $term_ids[] = (int) $term_id; 3494 3494 } elseif ( isset( $term_id->term_id ) ) { 3495 $term_ids[] = intval( $term_id->term_id );3495 $term_ids[] = (int) $term_id->term_id; 3496 3496 } 3497 3497 } … … 3949 3949 if ( is_object( $term_id ) ) { 3950 3950 $shared_term = $term_id; 3951 $term_id = intval( $shared_term->term_id );3951 $term_id = (int) $shared_term->term_id; 3952 3952 } 3953 3953 3954 3954 if ( is_object( $term_taxonomy_id ) ) { 3955 3955 $term_taxonomy = $term_taxonomy_id; 3956 $term_taxonomy_id = intval( $term_taxonomy->term_taxonomy_id );3956 $term_taxonomy_id = (int) $term_taxonomy->term_taxonomy_id; 3957 3957 } 3958 3958 … … 4121 4121 $_shared_terms = array(); 4122 4122 foreach ( $shared_terms as $shared_term ) { 4123 $term_id = intval( $shared_term->term_id );4123 $term_id = (int) $shared_term->term_id; 4124 4124 $_shared_terms[ $term_id ] = $shared_term; 4125 4125 } … … 4135 4135 $taxonomies = array(); 4136 4136 foreach ( $shared_tts as $shared_tt ) { 4137 $term_id = intval( $shared_tt->term_id );4137 $term_id = (int) $shared_tt->term_id; 4138 4138 4139 4139 // Don't split the first tt belonging to a given term_id.
Note: See TracChangeset
for help on using the changeset viewer.