Changeset 8353 for sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-plan-redirects.php
- Timestamp:
- 02/27/2019 01:13:53 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-plan-redirects.php
r4815 r8353 1 1 <?php 2 2 3 // No direct or CLI access. 3 4 if ( ! defined( 'ABSPATH' ) || ! ABSPATH || ( defined( 'WP_CLI' ) && WP_CLI ) ) … … 5 6 6 7 // Redirects for plan.wordcamp.org front-end only. 7 if ( $_SERVER['HTTP_HOST'] != 'plan.wordcamp.org' || is_admin() ) {8 if ( $_SERVER['HTTP_HOST'] != 'plan.wordcamp.org' || is_admin() || wp_doing_cron() ) { 8 9 return; 9 10 } … … 82 83 die( wp_redirect( esc_url_raw( 'https://make.wordpress.org/community/handbook/wordcamp-organizer' . $_SERVER['REQUEST_URI'] ), 301 ) ); 83 84 }); 85
Note: See TracChangeset
for help on using the changeset viewer.