Abilities API: Ensure public method is used in the codebase

Discovered when syncing code back to Abilities API repository in https://github.com/WordPress/abilities-api/pull/126.

Follow-up to [61032].
See #64098.


Built from https://develop.svn.wordpress.org/trunk@61059


git-svn-id: http://core.svn.wordpress.org/trunk@60395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
gziolo
2025-10-24 11:57:30 +00:00
parent d9b756760c
commit 1f1e5dfdd5
2 changed files with 2 additions and 3 deletions

View File

@@ -121,8 +121,7 @@ final class WP_Abilities_Registry {
// Validate ability category exists if provided (will be validated as required in WP_Ability).
if ( isset( $args['category'] ) ) {
$category_registry = WP_Ability_Categories_Registry::get_instance();
if ( ! $category_registry->is_registered( $args['category'] ) ) {
if ( ! wp_has_ability_category( $args['category'] ) ) {
_doing_it_wrong(
__METHOD__,
sprintf(

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.9-beta1-61058';
$wp_version = '6.9-beta1-61059';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.