Changeset 47808 for trunk/src/wp-includes/class-wp-post-type.php
- Timestamp:
- 05/16/2020 06:40:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-post-type.php
r47550 r47808 486 486 } 487 487 488 if ( false !== $args['rewrite'] && ( is_admin() || '' !=get_option( 'permalink_structure' ) ) ) {488 if ( false !== $args['rewrite'] && ( is_admin() || get_option( 'permalink_structure' ) ) ) { 489 489 if ( ! is_array( $args['rewrite'] ) ) { 490 490 $args['rewrite'] = array(); … … 555 555 } 556 556 557 if ( false !== $this->rewrite && ( is_admin() || '' !=get_option( 'permalink_structure' ) ) ) {557 if ( false !== $this->rewrite && ( is_admin() || get_option( 'permalink_structure' ) ) ) { 558 558 if ( $this->hierarchical ) { 559 559 add_rewrite_tag( "%$this->name%", '(.+?)', $this->query_var ? "{$this->query_var}=" : "post_type=$this->name&pagename=" );
Note: See TracChangeset
for help on using the changeset viewer.