Admin errors with strict reporting
-
The plugin produced the following errors:
WARNING: /usr/share/nginx/html/web/app/plugins/donately-donation-form/lib/posttypes.php:85 - Missing argument 2 for dntly_add_column_campaigns() WP_List_Table->display, WP_List_Table->print_column_headers, WP_List_Table->get_column_info, WP_List_Table->get_primary_column_name, WP_Posts_List_Table->get_columns, apply_filters('manage_dntly_campaigns_posts_columns'), call_user_func_array, dntly_add_column_campaigns
and
WARNING: /usr/share/nginx/html/web/app/plugins/donately-donation-form/lib/posttypes.php:114 - Missing argument 2 for dntly_add_column_fundraisers() require_once('wp-admin/admin.php'), do_action('admin_init'), call_user_func_array, CPAC_Storage_Model->set_columns_on_current_screen, CPAC_Storage_Model->set_columns, CPAC_Storage_Model->get_columns, CPAC_Storage_Model_Post->get_default_columns, apply_filters('manage_edit-dntly_fundraisers_columns'), call_user_func_array, WP_Posts_List_Table->get_columns, apply_filters('manage_dntly_fundraisers_posts_columns'), call_user_func_array, dntly_add_column_fundraisers
According to the codex, the
manage_${post_type}_posts_columns
filter only accepts one argument,$columns
. This is verified in the code as well. I’ve manually removed the additional $post_type argument from lines 85 and 114 of donately-donation-form/lib/posttypes.php for now but would love to see this update in the plugin as well to get rid of these errors when we update. Thanks!
- The topic ‘Admin errors with strict reporting’ is closed to new replies.