Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #40039


Ignore:
Timestamp:
03/06/2017 01:04:37 AM (8 years ago)
Author:
netweb
Comment:

Note: Twenty Seventeen does have a single file with a closing PHP tag:

https://core.trac.wordpress.org/browser/trunk/src/wp-content/themes/twentyseventeen/template-parts/footer/footer-widgets.php#L32

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #40039 – Description

    initial v1  
    66> ''"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."''
    77
    8 * Themes that exclude closing PHP tags: Twenty Fourteen
     8* Themes that exclude closing PHP tags: Twenty Fourteen and Twenty Seventeen
    99* Themes that include closing PHP tags: Twenty Ten, Eleven, Twelve, Thirteen, Fifteen, and Sixteen
    1010