WordPress.org

Make WordPress Core

Changeset 19878


Ignore:
Timestamp:
02/08/12 18:03:25 (3 years ago)
Author:
nacin
Message:

Let wp-admin work as well as wp-admin/ for the canonical redirect. see #19607.

File:
1 edited

Legend:

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

    r19877 r19878  
    9494 
    9595        if ( ! $redirect_url && get_option( 'home' ) != get_option( 'siteurl' ) ) { 
    96             if ( $original['path'] == home_url( 'wp-admin/', 'relative' ) ) 
     96            if ( trailingslashit( $original['path'] ) == home_url( 'wp-admin/', 'relative' ) ) 
    9797                $redirect_url = admin_url(); 
    9898            elseif ( $original['path'] == home_url( 'wp-login.php', 'relative' ) ) 
Note: See TracChangeset for help on using the changeset viewer.