Make WordPress Core


Ignore:
Timestamp:
07/02/2008 11:07:56 PM (17 years ago)
Author:
mdawaffe
Message:

crazyhorse: merge with log:trunk@8151:8240

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/crazyhorse/wp-includes/rewrite.php

    r7841 r8242  
    3232    }
    3333    $hook = 'do_feed_' . $feedname;
    34     remove_action($hook, $function, 10, 1);
     34    // Remove default function hook
     35    remove_action($hook, $hook, 10, 1);
    3536    add_action($hook, $function, 10, 1);
    3637    return $hook;
     
    5859    global $wp_rewrite;
    5960    $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  */
     69function _wp_filter_taxonomy_base( $base ) {
     70    if ( !empty( $base ) )
     71        $base = preg_replace( '|^/index\.php/|', '/', $base );
     72    return $base;
    6073}
    6174
     
    981994            $this->root = $this->index . '/';
    982995        }
    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' );
    985998        unset($this->category_structure);
    986999        unset($this->author_structure);
Note: See TracChangeset for help on using the changeset viewer.