Ticket #18544: 18544.2.patch
File 18544.2.patch, 1.8 KB (added by , 13 years ago) |
---|
-
wp-includes/canonical.php
277 277 $redirect['path'] = trailingslashit($redirect['path']) . $addl_path; 278 278 $redirect_url = $redirect['scheme'] . '://' . $redirect['host'] . $redirect['path']; 279 279 } 280 281 if ( 'wp-register.php' == basename( $redirect['path'] ) ) { 282 if ( is_multisite() ) 283 $redirect_url = apply_filters( 'wp_signup_location', site_url( 'wp-signup.php' ) ); 284 else 285 $redirect_url = site_url( 'wp-login.php?action=register' ); 286 wp_redirect( $redirect_url, 301 ); 287 die(); 288 } 280 289 } 281 290 282 291 // tack on any additional query vars -
wp-includes/rewrite.php
1534 1534 $registration_pages['.*wp-signup.php$'] = $this->index . '?signup=true'; 1535 1535 $registration_pages['.*wp-activate.php$'] = $this->index . '?activate=true'; 1536 1536 } 1537 $registration_pages['.*wp-register.php$'] = $this->index . '?register=true'; // Deprecated 1537 1538 1538 1539 // Post 1539 1540 $post_rewrite = $this->generate_rewrite_rules( $this->permalink_structure, EP_PERMALINK, false, true, false, false ); -
wp-register.php
1 <?php2 /**3 * Used to be the page which displayed the registration form.4 *5 * This file is no longer used in WordPress and is6 * deprecated.7 *8 * @package WordPress9 * @deprecated Use wp_register() to create a registration link instead10 */11 12 require('./wp-load.php');13 wp_redirect( site_url('wp-login.php?action=register') );14 exit;