Changeset 9872
- Timestamp:
- 05/13/2020 06:55:56 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
r9869 r9872 150 150 if ( is_archive() || is_search() || is_home() ) { 151 151 // Check $wp since `get_query_var()` will return default values too. 152 if ( !empty( $wp->query_vars[ 'order'] ) ) {152 if ( !empty( $wp->query_vars[ 'order'] ) && in_array( $wp->query_vars[ 'order'], [ 'asc', 'desc' ], true ) ) { 153 153 $url = add_query_arg( 'order', get_query_var( 'order' ), $url ); 154 154 }
Note: See TracChangeset
for help on using the changeset viewer.