Make WordPress Core

Changeset 15081


Ignore:
Timestamp:
05/31/2010 08:50:27 PM (16 years ago)
Author:
wpmuguru
Message:

add rewrites for registration pages, fixes #13638

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/rewrite.php

    r14924 r15081  
    15771577                                                                '.*wp-commentsrss2.php$'        =>      $this->index . '?feed=rss2&withcomments=1');
    15781578
     1579                // Registration rules
     1580                $registration_pages = array();
     1581                if ( is_multisite() && is_main_site() ) {
     1582                        $registration_pages['.*wp-signup.php$'] = $this->index . '?signup=true';
     1583                        $registration_pages['.*wp-activate.php$'] = $this->index . '?activate=true';
     1584                }
     1585
    15791586                // Post
    15801587                $post_rewrite = $this->generate_rewrite_rules($this->permalink_structure, EP_PERMALINK);
     
    16241631                // Put them together.
    16251632                if ( $this->use_verbose_page_rules )
    1626                         $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $default_feeds, $page_rewrite, $root_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $tag_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $this->extra_rules);
     1633                        $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $default_feeds, $registration_pages, $page_rewrite, $root_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $tag_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $this->extra_rules);
    16271634                else
    1628                         $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $default_feeds, $root_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $tag_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $page_rewrite, $this->extra_rules);
     1635                        $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $default_feeds, $registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $tag_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $page_rewrite, $this->extra_rules);
    16291636
    16301637                do_action_ref_array('generate_rewrite_rules', array(&$this));
Note: See TracChangeset for help on using the changeset viewer.