wp-pwa/worona-wp-plugin

WP REST API (version 2) not compatible with WP < 4.4

Poliuk opened this issue · 3 comments

We can't ask the users to activate the WP REST API if their WordPress version is lower than 4.4

https://wordpress.org/support/topic/undefined-function-11/

Tested in WordPress 4.2, 4.3, 4.4, 4.5 & 4.6. It doesn't work in WordPress < 4.4.

version_compare( get_bloginfo('version'), '4.4', '<') )

http://php.net/manual/es/function.version-compare.php

Not working properly in demo.worona.org (working fine in www.wp46.dev)