dmchale / disable-json-api

Public repo for the "Disable REST API" WordPress plugin, currently with 90,000+ active installs in the wordpress.org repository
10 stars 9 forks source link

Add `Requires PHP: X.X.X` to readme.txt #9

Closed tangrufus closed 7 years ago

tangrufus commented 7 years ago

Though i don't know what is the minimum requirement

See: https://meta.trac.wordpress.org/changeset/5841

dmchale commented 7 years ago

Updated readme to target 5.3+: https://github.com/dmchale/disable-json-api/commit/8846d07f3b830025b4677687949fbecd46f8c887

Patched admin.php to prevent fatal error "Can't use function return value in write context" on older versions of PHP. Plugin now seems to work fine with no warnings/errors down to PHP 5.3: https://github.com/dmchale/disable-json-api/commit/6ee0f0e7192f4210e8827f49f53d1596ae289775