bobbingwide / oik-batch

Batch interface to WordPress
https://www.oik-plugins.com/oik-plugins/oik-batch
GNU General Public License v2.0
0 stars 0 forks source link

createapi2.php does not run properly with WordPress 4.4.x #3

Closed bobbingwide closed 8 years ago

bobbingwide commented 8 years ago

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.

bobbingwide commented 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