[wp-hackers] Make WP_Rewrite eaiser to use

Sam Angove sam at rephrase.net
Mon Feb 6 00:17:59 GMT 2006

On 2/6/06, Peter Westwood <peter.westwood at ftwr.co.uk> wrote:
> I am getting to know it quite well at the moment trying to put together
> a patch for this old trac ticket - http://trac.wordpress.org/ticket/301
> (current inprogress patch attached)

It'll clutter the interface something shocking. I agree with that
ticket inasmuch as there should be more tokens used, though -- %page%
instead of hard-coded /page/, %trackback%, %attachment%, %date% etc.
For i18n if nothing else.

You can change the bases via plugin; here's one with no admin interface:

Plugin Name: Ace of Base

class AllYourBase {
	function change_of_base() {
		global $wp_rewrite;
		$wp_rewrite->feed_base = 'dinner';
		$wp_rewrite->author_base = 'hemingway';
		$wp_rewrite->comments_base = 'gossip';
		$wp_rewrite->search_base = 'mountainview';
add_filter( 'init', array('AllYourBase', 'change_of_base') );

More information about the wp-hackers mailing list