Changeset 4962
- Timestamp:
- 02/20/2017 11:29:40 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/wporg-sso/wp-plugin.php
r4961 r4962 226 226 } 227 227 } 228 } elseif ( ( is_admin() && is_super_admin() ) || preg_match( '!^/wp-json(/?$|/.+)!i', $_SERVER['REQUEST_URI'] ) ) {229 // Do nothing, allow access to wp-admin and wp-jsonon login.wordpress.org228 } elseif ( ( is_admin() && is_super_admin() ) || preg_match( '!^/wp-json(/?$|/.+)!i', $_SERVER['REQUEST_URI'] ) || '/xmlrpc.php' === $_SERVER['REQUEST_URI'] ) { 229 // Do nothing, allow access to wp-admin, wp-json and xmlrpc.php on login.wordpress.org 230 230 } elseif ( is_user_logged_in() ) { 231 231 // Logged in catch all, before last fallback
Note: See TracChangeset
for help on using the changeset viewer.