Make WordPress Core

Ticket #65512: 65512.diff

File 65512.diff, 1.2 KB (added by jigar bhanushali, 4 months ago)
  • src/wp-includes/abilities-api/class-wp-ability-category.php

    diff --git a/src/wp-includes/abilities-api/class-wp-ability-category.php b/src/wp-includes/abilities-api/class-wp-ability-category.php
    index d1d5b32004..406aa9f89a 100644
    a b final class WP_Ability_Category {  
    7171         *     @type string               $description A description of the ability category.
    7272         *     @type array<string, mixed> $meta        Optional. Additional metadata for the ability category.
    7373         * }
     74         * @throws InvalidArgumentException If an argument is invalid.
    7475         */
    7576        public function __construct( string $slug, array $args ) {
    7677                if ( empty( $slug ) ) {
    … … final class WP_Ability_Category {  
    122123         *     @type string               $description A description of the ability category.
    123124         *     @type array<string, mixed> $meta        Optional. Additional metadata for the ability category.
    124125         * }
    125          * @throws InvalidArgumentException if an argument is invalid.
     126         * @throws InvalidArgumentException If an argument is invalid.
    126127         */
    127128        protected function prepare_properties( array $args ): array {
    128129                // Required args must be present and of the correct type.