chartinael
Member
Posted 2 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?
henkholland
Member
Posted 2 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.
chartinael
Member
Posted 2 years ago #
So what do you think? I feel not inclined to leave out my ending tag.
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.
henkholland
Member
Posted 2 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.