Changeset 47219 for trunk/src/wp-includes/class-wp-rewrite.php
- Timestamp:
- 02/09/2020 04:52:28 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-rewrite.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-rewrite.php
r47122 r47219 921 921 // Get the structure, minus any cruft (stuff that isn't tags) at the front. 922 922 $structure = $permalink_structure; 923 if ( $front != '/') {923 if ( '/' !== $front ) { 924 924 $structure = str_replace( $front, '', $structure ); 925 925 } … … 1910 1910 */ 1911 1911 public function set_category_base( $category_base ) { 1912 if ( $category_base != get_option( 'category_base' )) {1912 if ( get_option( 'category_base' ) !== $category_base ) { 1913 1913 update_option( 'category_base', $category_base ); 1914 1914 $this->init(); … … 1928 1928 */ 1929 1929 public function set_tag_base( $tag_base ) { 1930 if ( $tag_base != get_option( 'tag_base' )) {1930 if ( get_option( 'tag_base' ) !== $tag_base ) { 1931 1931 update_option( 'tag_base', $tag_base ); 1932 1932 $this->init();
Note: See TracChangeset
for help on using the changeset viewer.