Changeset 47219 for trunk/src/wp-includes/rewrite.php
- Timestamp:
- 02/09/2020 04:52:28 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rewrite.php
r47122 r47219 159 159 function add_rewrite_tag( $tag, $regex, $query = '' ) { 160 160 // Validate the tag's name. 161 if ( strlen( $tag ) < 3 || $tag[0] != '%' || $tag[ strlen( $tag ) - 1 ] != '%') {161 if ( strlen( $tag ) < 3 || '%' !== $tag[0] || '%' !== $tag[ strlen( $tag ) - 1 ] ) { 162 162 return; 163 163 }
Note: See TracChangeset
for help on using the changeset viewer.