imath / wp-statuses

WordPress plugin to ease Custom Post Statuses integration
GNU General Public License v2.0
160 stars 27 forks source link

Default data is not set correctly #13

Closed JPry closed 2 years ago

JPry commented 6 years ago

When registering a custom post status with this plugin active, I expected the following default values:

array(
    'show_in_metabox_dropdown' => true,
    'show_in_inline_dropdown'  => true,
    'post_type'                => array( /* all registered post types */ ),
);

Instead, these parameters aren't set at all if I don't explicitly pass them.

This looks to be an error in the conditional that checks for $status_data at line 158 ofclass-wp-statuses-core-status.php.

imath commented 6 years ago

Hi @JPry

Thanks a lot for your feedback. I'll look at it this weekend.