Making WordPress.org


Ignore:
Timestamp:
02/04/2020 12:21:21 AM (7 years ago)
Author:
dd32
Message:

Login: Always use a slashed path for the canonical on wp-login.php.

See #5004.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php

    r9461 r9462  
    364364        // If the regular expression for this route is not matching, it's the canonical.
    365365        if ( false === stripos( WP_WPOrg_SSO::$matched_route_regex, '(' ) ) {
    366                 $canonical = site_url( WP_WPOrg_SSO::$matched_route_regex );
     366                $canonical = site_url( WP_WPOrg_SSO::$matched_route_regex ?: '/' );
    367367        }
    368368
Note: See TracChangeset for help on using the changeset viewer.