summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wp-includes/rewrite.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wp-includes/rewrite.php b/src/wp-includes/rewrite.php
index 235c0c82e2..246846dc35 100644
--- a/src/wp-includes/rewrite.php
+++ b/src/wp-includes/rewrite.php
@@ -412,7 +412,7 @@ function wp_resolve_numeric_slug_conflicts( $query_vars = array() ) {
// This is the potentially clashing slug.
$value = '';
- if ( $compare && array_key_exists( $compare, $query_vars ) ) {
+ if ( array_key_exists( $compare, $query_vars ) ) {
$value = $query_vars[ $compare ];
}
@@ -460,9 +460,7 @@ function wp_resolve_numeric_slug_conflicts( $query_vars = array() ) {
}
// If we've gotten to this point, we have a slug/date clash. First, adjust for nextpage.
- if ( '' !== $maybe_page ) {
- $query_vars['page'] = (int) $maybe_page;
- }
+ $query_vars['page'] = $maybe_page;
// Next, unset autodetected date-related query vars.
unset( $query_vars['year'] );