Changeset 56210
- Timestamp:
- 07/11/2023 11:32:15 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-rewrite.php
r56031 r56210 1669 1669 $front = substr( $query, 0, $index ); 1670 1670 1671 $external = $front != $this->index;1671 $external = $front !== $this->index; 1672 1672 } 1673 1673 … … 1800 1800 $args = array( 'with_front' => $args ); 1801 1801 } 1802 if ( func_num_args() == 4 ) { 1802 1803 if ( func_num_args() === 4 ) { 1803 1804 $args['ep_mask'] = func_get_arg( 3 ); 1804 1805 } … … 1813 1814 'endpoints' => true, 1814 1815 ); 1815 $args = array_intersect_key( $args, $defaults ); 1816 $args = wp_parse_args( $args, $defaults ); 1816 1817 $args = array_intersect_key( $args, $defaults ); 1818 $args = wp_parse_args( $args, $defaults ); 1817 1819 1818 1820 if ( $args['with_front'] ) { … … 1821 1823 $struct = $this->root . $struct; 1822 1824 } 1825 1823 1826 $args['struct'] = $struct; 1824 1827 … … 1938 1941 */ 1939 1942 public function set_permalink_structure( $permalink_structure ) { 1940 if ( $ permalink_structure != $this->permalink_structure ) {1943 if ( $this->permalink_structure !== $permalink_structure ) { 1941 1944 $old_permalink_structure = $this->permalink_structure; 1942 1945 update_option( 'permalink_structure', $permalink_structure );
Note: See TracChangeset
for help on using the changeset viewer.