[Solved] Missing closing ?> in child / functions.php

Reports about issues that you encounter in Suffusion. This forum is closed with effect from February 2019. Please post future requests on https://github.com/sayontan/suffusion.
Forum rules
This forum is being officially closed with effect from 3rd February 2019. Future support requests can be posted on the GitHub page at https://github.com/sayontan/suffusion/issues.
Locked
User avatar
Connie
Posts: 1169
Joined: 10 Nov 2009, 04:53
Contact:

[Solved] Missing closing ?> in child / functions.php

Post by Connie » 12 Oct 2013, 08:55

Hello!

I downloaded the child-theme-zip from the suffusion homepage.
I noticed that the included functions.php misses the closing instruction "?>"

I think this is a bug ;=)
Last edited by Connie on 12 Oct 2013, 23:24, edited 1 time in total.

drake
Posts: 6223
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania
Contact:

Re: Missing closing ?> in child / functions.php

Post by drake » 12 Oct 2013, 09:22

No Connie, there is no bug. Php don't require the closing taq "?>" so, WordPress don't need this tag in files. See the answer of Esmi in this topic: http://wordpress.org/support/topic/func ... replies=18
A closing ?> tag at the end of a file isn't actually needed and, in some cases. can stop errors occurring due to trailing white space or other characters after the closing tag.

User avatar
Connie
Posts: 1169
Joined: 10 Nov 2009, 04:53
Contact:

Re: Missing closing ?> in child / functions.php

Post by Connie » 12 Oct 2013, 10:44

Thank you for that.

I am "educated" to always close any open tags, so I was wondering why this stayed open.
Many experiences with missing closing tags let me assume that this is a bug....

I checked other theme's functions.php and many of them / most of them had that tag, so I was worried.
Older versions of Suffusion used the closing tag, but as I see now 4.4.7 does not.

Thank you, I will add this to my notes,

Connie

Locked