You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: guard ability category registration against double-fire _doing_it_wrong notice (#733)
WordPress core's wp_abilities_api_categories_init action can fire more
than once per request on multisite. The four wp_register_ability_category
calls ran unconditionally, so the second fire re-registered each category
and tripped WP_Ability_Categories_Registry::register's _doing_it_wrong
"already registered" notice.
Wrap each registration in a wp_has_ability_category guard (with a
function_exists fallback for the API itself) so a repeat fire is a clean
no-op.
0 commit comments