Changeset 10077
- Timestamp:
- 07/17/2020 04:39:41 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-seo/canonical.php
r9991 r10077 105 105 } elseif ( is_search() ) { 106 106 $url = home_url( 'search/' . urlencode( get_query_var( 's' ) ) . '/' ); 107 } elseif ( is_author() ) {108 // On WordPress.org get_author_posts_url() returns profile.wordpress.org links. Build it manually .107 } elseif ( is_author() && $queried_object instanceOf \WP_User ) { 108 // On WordPress.org get_author_posts_url() returns profile.wordpress.org links. Build it manually 109 109 $url = home_url( 'author/' . $queried_object->user_nicename . '/' ); 110 110 } elseif ( is_post_type_archive() ) {
Note: See TracChangeset
for help on using the changeset viewer.