Skip to content
Snippets Groups Projects
Commit 28014a63 authored by Erick Hitter's avatar Erick Hitter
Browse files

Ensure there's always a fallback to WP

parent 2270e9e6
Branches
No related tags found
No related merge requests found
...@@ -135,6 +135,8 @@ try { ...@@ -135,6 +135,8 @@ try {
} }
} elseif ( $_SERVER['REMOTE_ADDR'] != $server_ip && true === strstr( $current_url, 'preview=true' ) ) { } elseif ( $_SERVER['REMOTE_ADDR'] != $server_ip && true === strstr( $current_url, 'preview=true' ) ) {
require dirname( __FILE__ ) . '/wp-blog-header.php'; require dirname( __FILE__ ) . '/wp-blog-header.php';
} else {
require dirname( __FILE__ ) . '/wp-blog-header.php';
} }
} catch ( Exception $e ) { } catch ( Exception $e ) {
require dirname( __FILE__ ) . '/wp-blog-header.php'; require dirname( __FILE__ ) . '/wp-blog-header.php';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment