Changeset 60733 for trunk/src/wp-includes/link-template.php
- Timestamp:
- 09/12/2025 09:16:41 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/link-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r60697 r60733 1889 1889 } 1890 1890 $term_array = wp_get_object_terms( $post->ID, $taxonomy, array( 'fields' => 'ids' ) ); 1891 if ( is_wp_error( $term_array ) ) { 1892 return ''; 1893 } 1891 1894 1892 1895 // Remove any exclusions from the term array to include. 1893 1896 $term_array = array_diff( $term_array, (array) $excluded_terms ); 1894 $term_array = array_map( 'intval', $term_array ); 1895 1896 if ( ! $term_array || is_wp_error( $term_array ) ) { 1897 1898 if ( ! $term_array ) { 1897 1899 return ''; 1898 1900 } 1901 1902 $term_array = array_map( 'intval', $term_array ); 1899 1903 1900 1904 $where .= ' AND tt.term_id IN (' . implode( ',', $term_array ) . ')';
Note: See TracChangeset
for help on using the changeset viewer.