WordPress 2.8 to WordPress 2.8.4 wp-config-sample and wp-cron files, no closing tags

Wednesday, August 12, 2009 @ 12:01 pm by Sofie Hofmann

The first thing I did after I downloaded WordPress 2.8.4 was checking the wp-config-sample.php and wp-cron.php files. I saw that the closing tags are still missing. Since the release of WordPress 2.8, these two files have been missing the closing tags but I did not write about it as it is easy to correct it by simply closing the new wp-config.php file which is a copy of wp-config-sample.php file.

I actually have been wondering why wp-config-sample.php and wp-cron.php files have no closing tags? What I know is every file that has an opening tag “<?php” must have a closing tag “?>” as well. So I am not sure why these two particular files were not closed. I guess they were just overlooked and nobody reported it.

Nowadays, since we are normally upgrading our blogs and sites automatically using the WordPress automatic upgrader, wp-config.php is not being deleted nor replaced. So if you upgraded your blog or site from WordPress 2.7 using the WordPress automatic upgrader, then there is no problem as the old wp-config.php file has definitely a closing tag.

Even if you manually upgraded your blog or site, as long as you did not delete nor replace your wp-config.php file, then your wp-config.php file has definitely a closing tag. Normally, you do not delete nor replace the wp-config.php file anyway every time you upgrade.

The problem now is, if you installed WordPress especially WordPress 2.8 or any of its security releases for the first time for your blog or site. If you copied wp-config-sample.php file and created the new wp-config.php file without supplying the closing tag then your wp-config.php has definitely no closing tag.

As to wp-cron.php file, the old file will be replaced by the new file, so the new wp-cron.php file should be corrected manually as this file has definitely no closing tag.

Regarding other files, I did not check the other files, so I do not know if there are more files that do not have closing tags.

This entry was posted on Wednesday, August 12, 2009 at 12:01 pm and is filed under PHP, WordPress. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Related Posts

1 Comment to “WordPress 2.8 to WordPress 2.8.4 wp-config-sample and wp-cron files, no closing tags”

  1. [...] the wp-config-sample.php and wp-cron.php files which I was telling you about in this blog entry, WordPress 2.8 to WordPress 2.8.4 wp-config-sample and wp-cron files, no closing tags. Up to now, the two files have no closing tags [...]

Leave a Reply

Commenting is under moderation.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

 
 
 
 
 
 

Who is behind Sehdi.com?

I am Sofie Hofmann and I have been designing websites since 1999. My background is in training, sales and marketing management before venturing into web design and development but merely as a hobby.
Read more...

Make money with Text Link Ads
Text Link Ads