Changeset 9246
- Timestamp:
- 11/01/2019 02:59:59 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/functions.php
r9207 r9246 67 67 function rel_canonical() { 68 68 $canonical = false; 69 70 if ( is_front_page() ) { 69 $queried_object = get_queried_object(); 70 71 if ( is_tax() || is_tag() || is_category() ) { 72 $canonical = get_term_link( $queried_object ); 73 } elseif ( is_singular() ) { 74 $canonical = get_permalink( $queried_object ); 75 } elseif ( is_front_page() ) { 71 76 $canonical = home_url( '/' ); 72 77 }
Note: See TracChangeset
for help on using the changeset viewer.