Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #44459, comment 1


Ignore:
Timestamp:
06/26/2018 11:51:51 AM (5 years ago)
Author:
subrataemfluence
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #44459, comment 1

    initial v1  
    1414Also, in `class-wp-rewrite.php`, functions are specially written to handle the same two options, i.e.
    1515
    16 set_category_base and set_tag_base, which are being used back in `wp-admin/options-permalink.php`:
     16
     17{{{
     18public function set_category_base ( $category_base ) {
     19   if ( $category_base != get_option( 'category_base' ) ) {
     20      update_option( 'category_base', $category_base );
     21      $this->init();
     22   }
     23}
     24}}}
     25
     26
     27and
     28
     29
     30{{{
     31public function set_tag_base( $tag_base ) {
     32   if ( $tag_base != get_option( 'tag_base' ) ) {
     33      update_option( 'tag_base', $tag_base );
     34      $this->init();
     35   }
     36}
     37}}}
     38
     39
     40which are being called back in `wp-admin/options-permalink.php`:
    1741
    1842