Changeset 47550 for trunk/src/wp-includes/class-wp-rewrite.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-rewrite.php
r47219 r47550 798 798 */ 799 799 public function add_rewrite_tag( $tag, $regex, $query ) { 800 $position = array_search( $tag, $this->rewritecode );800 $position = array_search( $tag, $this->rewritecode, true ); 801 801 if ( false !== $position && null !== $position ) { 802 802 $this->rewritereplace[ $position ] = $regex; … … 822 822 */ 823 823 public function remove_rewrite_tag( $tag ) { 824 $position = array_search( $tag, $this->rewritecode );824 $position = array_search( $tag, $this->rewritecode, true ); 825 825 if ( false !== $position && null !== $position ) { 826 826 unset( $this->rewritecode[ $position ] );
Note: See TracChangeset
for help on using the changeset viewer.