WordPress.org

Ready to get started?Download WordPress

Forums

2.9 Config Sample without closing tag '?>' (5 posts)

  1. chartinael
    Member
    Posted 4 years ago #

    Hey guys,

    I just checked the config sample php supplied with 2.9

    Have those always had no closing php-tag?

    My old one ends with

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');
    ?>

    the new one is missing the end tag.

    Is that supposed tobe that way?

  2. henkholland
    Member
    Posted 4 years ago #

    I saw that too and the config sample in 2.8.6 also does not have it. 2.7.1. did have it.

  3. chartinael
    Member
    Posted 4 years ago #

    So what do you think? I feel not inclined to leave out my ending tag.

  4. From what I've heard, the ending tags are left out to help cure the common user-added errors (like other missing syntax) when editing wp-config. Server php interpreters are forgiving of some errors when the end tags are missing. You can add them back in.

  5. henkholland
    Member
    Posted 4 years ago #

    Well, I am not a progammer so I just took it out (on my testsite) and saw no changes. Even validated the test site and it is still compliant. Strange, I will leave it in anyway.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags