Tagged: ,

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #234444

    I noticed that http://domain.tld/wp-content/themes/enfold/ was indexed by Google and that it on that URL was shown: Fatal error: Call to undefined function get_header() in /dummy/wp-content/themes/enfold/index.php on line 11

    This error can be prevented by adding:

    if( !defined( 'ABSPATH' ) ) {
    	exit;
    }

    ..right after the first PHP tag.

    Seen in Enfold version 2.5.2

Viewing 1 post (of 1 total)
  • The topic ‘How to: Prevent display of Fatal error when accessing theme folder directly’ is closed to new replies.