WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #39767, comment 1


Ignore:
Timestamp:
02/02/2017 11:46:51 AM (5 years ago)
Author:
swissspidy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39767, comment 1

    initial v1  
    77> If a file is pure PHP code, it is preferable to omit the PHP closing tag at the end of the file. This prevents accidental whitespace or new lines being added after the PHP closing tag, which may cause unwanted effects because PHP will start output buffering when there is no intention from the programmer to send any output at that point in the script.
    88
    9  If your theme or plugin has line breaks after `?>`, you need to inform the developer to fix this (ideally by omitting the closing tag at the end of the file). Again, since this is how PHP is designed, WordPress cannot account for this.
     9If your theme or plugin has line breaks after `?>`, you need to inform the developer to fix this (ideally by omitting the closing tag at the end of the file). Again, since this is how PHP is designed, WordPress cannot account for this.