Changeset 48026
- Timestamp:
- 06/11/2020 10:53:06 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r47937 r48026 410 410 411 411 $redirect['query'] = remove_query_arg( 'page', $redirect['query'] ); 412 } elseif ( is_singular() && empty( get_query_var( 'name' ) ) && $post_id ) {413 /*414 * Redirect example.org/%post_id%/ to canonical url.415 * @ticket 12456416 */417 $redirect_url = get_permalink( $post_id );418 $redirect['query'] = _remove_qs_args_if_not_in_url(419 $redirect['query'],420 array( 'p', 'page_id', 'attachment_id', 'pagename', 'name', 'post_type' ),421 $redirect_url422 );423 412 } 424 413
Note: See TracChangeset
for help on using the changeset viewer.