Changeset 47169 for trunk/src/wp-includes/canonical.php
- Timestamp:
- 02/03/2020 12:12:22 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r47122 r47169 486 486 if ( ! empty( $redirect['query'] ) ) { 487 487 // Remove trailing spaces and end punctuation from certain terminating query string args. 488 $redirect['query'] = preg_replace( "#(( p|page_id|cat|tag)=[^&]*?)($punctuation_pattern)+$#", '$1', $redirect['query'] );488 $redirect['query'] = preg_replace( "#((^|&)(p|page_id|cat|tag)=[^&]*?)($punctuation_pattern)+$#", '$1', $redirect['query'] ); 489 489 490 490 // Clean up empty query strings.
Note: See TracChangeset
for help on using the changeset viewer.