WordPress.org

Make WordPress Core

Ticket #19607: 19607.wp.1.diff

File 19607.wp.1.diff, 683 bytes (added by wet, 3 years ago)

Add 'wordpress' and 'WordPress' to the list of canonicalized login routes to help brand-centric users.

  • wp-includes/canonical.php

     
    475475                home_url( 'wp-admin', 'relative' ), 
    476476                home_url( 'dashboard', 'relative' ), 
    477477                home_url( 'admin', 'relative' ), 
     478                home_url( 'wordpress', 'relative' ), 
     479                home_url( 'WordPress', 'relative' ), 
    478480                site_url( 'dashboard', 'relative' ), 
    479481                site_url( 'admin', 'relative' ), 
     482                site_url( 'wordpress', 'relative' ), 
     483                site_url( 'WordPress', 'relative' ), 
    480484        ); 
    481485        if ( in_array( untrailingslashit( $_SERVER['REQUEST_URI'] ), $admins ) ) { 
    482486                wp_redirect( admin_url() );