Changeset 32941
- Timestamp:
- 06/25/2015 04:55:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rewrite.php
r32650 r32941 2041 2041 public function add_rule($regex, $redirect, $after = 'bottom') { 2042 2042 //get everything up to the first ? 2043 $index = (strpos($redirect, '?') == false ? strlen($redirect) : strpos($redirect, '?'));2043 $index = (strpos($redirect, '?') === false ? strlen($redirect) : strpos($redirect, '?')); 2044 2044 $front = substr($redirect, 0, $index); 2045 2045 if ( $front != $this->index ) { //it doesn't redirect to WP's index.php
Note: See TracChangeset
for help on using the changeset viewer.