AdvancedCustomFields / acf

Advanced Custom Fields
http://advancedcustomfields.com/
823 stars 168 forks source link

Callback function is not exist #875

Open cagdasdag opened 9 months ago

cagdasdag commented 9 months ago

We don't have save_post method inside this class but we are using the hook without having a callback method. I checked the history couldn't see any reference to this, so I feel like this is a forgotten code for a long time 🤔

lgladdy commented 9 months ago

Thanks for the report here. This isn't legacy code (in fact, it'a new with ACF 6!) but rather there are no instances of ACF_Admin_Internal_Post_Type instead this class is extended by each of the ACF types.

We'll fix this either by making it an abstract class or by adding a blank stub function like we do the functions admin_head etc.