Changeset 8213
- Timestamp:
- 06/29/2008 08:20:25 AM (17 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/wp-includes/default-filters.php ¶
r8011 r8213 154 154 add_filter('pre_comment_content', 'wp_rel_nofollow', 15); 155 155 add_filter('comment_email', 'antispambot'); 156 add_filter('option_tag_base', '_wp_filter_taxonomy_base'); 157 add_filter('option_category_base', '_wp_filter_taxonomy_base'); 156 158 157 159 //Atom SSL support -
TabularUnified trunk/wp-includes/rewrite.php ¶
r8179 r8213 59 59 global $wp_rewrite; 60 60 $wp_rewrite->add_endpoint($name, $places); 61 } 62 63 /** 64 * _wp_filter_taxonomy_base() - filter the URL base for taxonomies, to remove any manually prepended /index.php/ 65 * @param string $base the taxonomy base that we're going to filter 66 * @return string 67 * @author Mark Jaquith 68 */ 69 function _wp_filter_taxonomy_base( $base ) { 70 if ( !empty( $base ) ) 71 $base = preg_replace( '|^/index\.php/|', '/', $base ); 72 return $base; 61 73 } 62 74 … … 982 994 $this->root = $this->index . '/'; 983 995 } 984 $this->category_base = get_option( 'category_base' );985 $this->tag_base = get_option( 'tag_base' );996 $this->category_base = ( ( $this->using_index_permalinks() ) ? '/' . $this->index : '' ) . get_option( 'category_base' ); 997 $this->tag_base = ( ( $this->using_index_permalinks() ) ? '/' . $this->index : '' ) . get_option( 'tag_base' ); 986 998 unset($this->category_structure); 987 999 unset($this->author_structure);
Note: See TracChangeset
for help on using the changeset viewer.