ampproject/amp-wp

Minimum PHP version should be increased to 5.3.6

bobbrodie opened this issue · 2 comments

In #891, the minimum PHP version is set to 5.3, however http://php.net/manual/en/domdocument.savehtml.php is not available until 5.3.6. While many people will be running on more recent versions of PHP, there are folks out there that are on versions of 5.3 that are lower than 5.3.6. This causes an issue where the post content will not show on AMP pages.

Good catch. Yes, I see that the $node parameter was added in 5.3.6:

image

Opening a PR…