[wp-trac] [WordPress Trac] #6791: Eliminate closing ?>'s from
wp-config-sample.php
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 21 16:15:39 GMT 2008
#6791: Eliminate closing ?>'s from wp-config-sample.php
-------------------------+--------------------------------------------------
Reporter: Otto42 | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.6
Component: General | Version: 2.5
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
One of the most frequent problems mentioned on the forum is the "blank
line" problem. This is where some file contains a blank line before or
after the <?php .. ?> tags that causes either header issues (which will
prevent login's due to cookies not working) or causes invalid feed issues
(which is recently a major problem with FeedBurner, since they stopped
accepting invalid feeds).
It is described better here:
http://feedvalidator.org/docs/error/WPBlankLine.html
I recommend eliminating the use of the closing ?> tag in the wp-config.php
file entirely. This will prevent text editors that introduce blank lines
or excess spacing from breaking bits of the site by doing so. Since this
file is pure PHP, the closing tag is optional anyway, and leaving it off
ensures that the PHP interpreter does not produce output from it.
Reference this as well:
http://framework.zend.com/manual/en/coding-standard.php-file-
formatting.html
--
Ticket URL: <http://trac.wordpress.org/ticket/6791>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list