Changeset 8242 for branches/crazyhorse/wp-includes/rewrite.php
- Timestamp:
- 07/02/2008 11:07:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crazyhorse/wp-includes/rewrite.php
r7841 r8242 32 32 } 33 33 $hook = 'do_feed_' . $feedname; 34 remove_action($hook, $function, 10, 1); 34 // Remove default function hook 35 remove_action($hook, $hook, 10, 1); 35 36 add_action($hook, $function, 10, 1); 36 37 return $hook; … … 58 59 global $wp_rewrite; 59 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; 60 73 } 61 74 … … 981 994 $this->root = $this->index . '/'; 982 995 } 983 $this->category_base = get_option( 'category_base' );984 $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' ); 985 998 unset($this->category_structure); 986 999 unset($this->author_structure);
Note: See TracChangeset
for help on using the changeset viewer.