UCF / UCF-Resource-Search-Plugin

Plugin for displaying a resource search and list of resources via a shortcode.
0 stars 0 forks source link

UCF_Resource_Link_Type::register_meta_fields() doesn't register actions correctly #7

Closed cjg89 closed 5 years ago

cjg89 commented 5 years ago

Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'UCF_Resource_Link_PostType' does not have a method 'add_resource_link_types_fields' in /wordpress/wp-includes/class-wp-hook.php on line 286

Looks like these actions are getting registered referencing the wrong class name (should be add_action( '...', array( 'UCF_Resource_Link_Type', '...' ) instead of add_action( '...', array( 'UCF_Resource_Link_PostType', '...' ): https://github.com/UCF/UCF-Resource-Search-Plugin/blob/master/includes/ucf-resource-link-tax.php#L14-L17

cjg89 commented 5 years ago

Closing since it looks like this will be resolved in v1.0.4.