Changeset 43899 for branches/5.0/src/wp-includes/nav-menu.php
- Timestamp:
- 11/15/2018 11:19:40 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/nav-menu.php
r42026 r43899 1140 1140 1141 1141 // ...actually match! 1142 if ( false === stripos( $new_location, $slug ) && false === stripos( $slug, $new_location ) ) { 1142 if ( is_string( $new_location ) && false === stripos( $new_location, $slug ) && false === stripos( $slug, $new_location ) ) { 1143 continue; 1144 } elseif ( is_numeric( $new_location ) && $new_location !== $slug ) { 1143 1145 continue; 1144 1146 } … … 1151 1153 1152 1154 // ... have a match as well. 1153 if ( false === stripos( $location, $slug ) && false === stripos( $slug, $location ) ) { 1155 if ( is_string( $location ) && false === stripos( $location, $slug ) && false === stripos( $slug, $location ) ) { 1156 continue; 1157 } elseif ( is_numeric( $location ) && $location !== $slug ) { 1154 1158 continue; 1155 1159 }
Note: See TracChangeset
for help on using the changeset viewer.