Changeset 25535
- Timestamp:
- 09/20/2013 11:30:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r25280 r25535 297 297 if ( 'wp-register.php' == basename( $redirect['path'] ) ) { 298 298 if ( is_multisite() ) 299 //duplicate_hook 299 300 $redirect_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ); 300 301 else … … 433 434 } 434 435 435 // Note that you can use the "redirect_canonical" filter to cancel a canonical redirect for whatever reason by returning false 436 $redirect_url = apply_filters('redirect_canonical', $redirect_url, $requested_url); 436 /** 437 * Filter the canonical redirect URL. 438 * 439 * Returning false to this filter will cancel the redirect. 440 * 441 * @since 2.3.0 442 * 443 * @param string $redirect_url The redirect URL. 444 * @param string $requested_url The requested URL. 445 */ 446 $redirect_url = apply_filters( 'redirect_canonical', $redirect_url, $requested_url ); 437 447 438 448 if ( !$redirect_url || $redirect_url == $requested_url ) // yes, again -- in case the filter aborted the request
Note: See TracChangeset
for help on using the changeset viewer.