diff --git a/src/wp-includes/rewrite.php b/src/wp-includes/rewrite.php
index 4a204c2601..b35dcabf42 100644
a
|
b
|
function wp_resolve_numeric_slug_conflicts( $query_vars = array() ) { |
410 | 410 | } |
411 | 411 | |
412 | 412 | // This is the potentially clashing slug. |
413 | | $value = $query_vars[ $compare ]; |
| 413 | $value = ''; |
| 414 | if ( $compare && array_key_exists( $compare, $query_vars ) ) { |
| 415 | $value = $query_vars[ $compare ]; |
| 416 | } |
414 | 417 | |
415 | 418 | $post = get_page_by_path( $value, OBJECT, 'post' ); |
416 | 419 | if ( ! ( $post instanceof WP_Post ) ) { |