Automattic / themes

Free WordPress themes made by Automattic for WordPress.org and WordPress.com.
https://themeshaper.com
GNU General Public License v2.0
847 stars 342 forks source link

Update "Supports PHP:" value for all themes #7785

Open creativecoder opened 2 months ago

creativecoder commented 2 months ago

We've been adding declare( strict_types=1 ); to theme PHP files because of WP.com deploy requirements.

This mode was added in PHP 7. Currently most (all?) themes in this repo declare "Support PHP: 5.x" in the style.css header.

We need to update this to correctly require PHP 7.0+, to indicate that themes may trigger errors if used with older PHP versions.

creativecoder commented 1 month ago

I've restored [Type] Bug for this issue--fixing incorrect PHP compatibility information is not an enhancement.