Closed bobbingwide closed 8 years ago
That's not the only fix. There are many more include files in 4.4.2 than there were in 4.3.x
In order to fix: Fatal error: Uncaught Error: Class 'WP_Http_Encoding' not found
we need to include a load more files prefixed class-wp-http
after class-http
When createapi2.php is run in a WordPress 4.4.x we get the following message.
Fatal error: Uncaught Error: Call to undefined function add_action()
Problem explanation
There is a call to add_action() in formatting.php This assumes that plugin.php has been loaded. oik-batch loads formatting.php before plugin.php
Solution
swap the lines around.