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
{{ message }}
Repository navigation
Commit 5ba7fb8
Browse filesBrowse the repository at this point in the historyBrowse files
When the `category` argument is omitted during ability registration, the registry now assigns the built-in `uncategorized` category. This category is registered alongside the other core ability categories.
Previously, the registry only validated a category when one was provided, but `WP_Ability` still required the argument, so a registration without a category could never succeed. The fallback is applied before validation, so invalid values are still rejected. This includes non-string types and empty or unregistered category slugs.
Also updates the public API documentation and adds regression coverage for the fallback and for invalid category values.
Props hokansardar, sachinrajcp123, jorgefilipecosta, gziolo.
Fixes #65569.
git-svn-id: https://develop.svn.wordpress.org/trunk@63343 602fd350-edb4-49c9-b593-d223f7449a82
0 commit comments