Making WordPress.org


Ignore:
Timestamp:
02/03/2020 11:59:23 PM (5 years ago)
Author:
dd32
Message:

Login: Allow robots.txt to be triggered.

Fixes #5005.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/wporg-sso/wp-plugin.php

    r9324 r9459  
    1818        public $valid_sso_paths = array(
    1919            'root'         => '/',
     20            'robots'       => '/robots\.txt',
    2021            'checkemail'   => '/checkemail',
    2122            'loggedout'    => '/loggedout',
     
    250251                            // No redirect, ask the user if they really want to log out.
    251252                            return;
     253                        } else if ( 'robots' === self::$matched_route ) {
     254                            // No redirect, just display robots.
    252255                        } else if ( is_user_logged_in() ) {
    253256                            // Otherwise, redirect to the their profile.
Note: See TracChangeset for help on using the changeset viewer.