Support » Installing WordPress » 2.9 Config Sample without closing tag ‘?>’

  • 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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I saw that too and the config sample in 2.8.6 also does not have it. 2.7.1. did have it.

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

    Moderator Mark Ratledge


    Forum Moderator

    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.

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘2.9 Config Sample without closing tag ‘?>’’ is closed to new replies.