Changeset 61059
- Timestamp:
- 10/24/2025 11:55:17 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/abilities-api/class-wp-abilities-registry.php
r61032 r61059 122 122 // Validate ability category exists if provided (will be validated as required in WP_Ability). 123 123 if ( isset( $args['category'] ) ) { 124 $category_registry = WP_Ability_Categories_Registry::get_instance(); 125 if ( ! $category_registry->is_registered( $args['category'] ) ) { 124 if ( ! wp_has_ability_category( $args['category'] ) ) { 126 125 _doing_it_wrong( 127 126 __METHOD__,
Note: See TracChangeset
for help on using the changeset viewer.