Ticket #18544: 18544.patch
File 18544.patch, 1.8 KB (added by , 13 years ago) |
---|
-
wp-includes/canonical.php
265 265 $redirect['path'] = trailingslashit($redirect['path']) . $addl_path; 266 266 $redirect_url = $redirect['scheme'] . '://' . $redirect['host'] . $redirect['path']; 267 267 } 268 269 if ( 'wp-register.php' == basename( $redirect['path'] ) ) { 270 if ( is_multisite() ) 271 $redirect_url = apply_filters( 'wp_signup_location', site_url('wp-signup.php') ); 272 else 273 $redirect_url = site_url('wp-login.php?action=register'); 274 wp_redirect( $redirect_url, 301 ); 275 die(); 276 } 268 277 } 269 278 270 279 // tack on any additional query vars -
wp-includes/rewrite.php
1495 1495 $registration_pages['.*wp-signup.php$'] = $this->index . '?signup=true'; 1496 1496 $registration_pages['.*wp-activate.php$'] = $this->index . '?activate=true'; 1497 1497 } 1498 $registration_pages['.*wp-register.php$'] = $this->index . '?register=true'; // Deprecated 1498 1499 1499 1500 // Post 1500 1501 $post_rewrite = $this->generate_rewrite_rules($this->permalink_structure, EP_PERMALINK); -
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;15 ?>