Changeset 65151
- Timestamp:
- 10/31/2026 09:08:36 PM (5 hours ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
-
src/wp-includes/link-template.php (modified) (1 diff)
-
tests/phpunit/tests/link/getBoundaryPost.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r64488 r65151 2210 2210 */ 2211 2211 function get_boundary_post( $in_same_term = false, $excluded_terms = '', $start = true, $taxonomy = 'category' ) { 2212 if ( ! taxonomy_exists( $taxonomy ) ) { 2213 return null; 2214 } 2215 2212 2216 $post = get_post(); 2213 2217 2214 if ( ! $post || ! is_single() || is_attachment() || ! taxonomy_exists( $taxonomy )) {2218 if ( $in_same_term && ! $post ) { 2215 2219 return null; 2216 2220 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)