diff --git a/wp-footer.php b/wp-footer.php index 1e12ed1674..df5790f99a 100644 --- a/wp-footer.php +++ b/wp-footer.php @@ -2,7 +2,7 @@ // If a footer.php file exists in the WP root directory we // use that, otherwise use this default wp-footer.php file. if ( file_exists(ABSPATH . '/footer.php') ) : - include(ABSPATH . '/footer.php'); + include_once(ABSPATH . '/footer.php'); else : ?> diff --git a/wp-header.php b/wp-header.php index a7ed29cb67..1209cd3b41 100644 --- a/wp-header.php +++ b/wp-header.php @@ -2,7 +2,7 @@ // If a header.php file exists in the WP root directory we // use that, otherwise use this default wp-header.php file. if ( file_exists(ABSPATH . '/header.php') ) : - include(ABSPATH . '/header.php'); + include_once(ABSPATH . '/header.php'); else : ?>