{"id":6150031,"date":"2015-05-20T15:32:00","date_gmt":"2015-05-20T15:32:00","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wordpress-requirement-issue-with-wp_json_encode\/"},"modified":"2016-08-24T16:26:57","modified_gmt":"2016-08-24T16:26:57","slug":"wordpress-requirement-issue-with-wp_json_encode","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wordpress-requirement-issue-with-wp_json_encode\/","title":{"rendered":"WordPress requirement issue with wp_json_encode"},"content":{"rendered":"<p>Plugin description says it requires WP 3.8 or higher&#8230; however it&#8217;s using the &#8220;wp_json_encode&#8221; function which requires WP 4.1+.<\/p>\n<p>Using WP 3.9.6 it throws the following error sporadically:<\/p>\n<p><code>Fatal error: Call to undefined function wp_json_encode() in \/wp-content\/plugins\/wp-rollback\/wp-rollback.php on line 615<\/code><\/p>\n<p>So, you may need to adjust your minimum or come up with a pre-4.1 alternative.<\/p>\n<p>Ref: https:\/\/developer.wordpress.org\/reference\/functions\/wp_json_encode\/<\/p>\n<p>https:\/\/wordpress.org\/plugins\/wp-rollback\/<\/p>\n","protected":false},"template":"","class_list":["post-6150031","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6150031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6150031\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6150031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}