Make WordPress Core


Ignore:
Timestamp:
10/27/2025 11:55:51 AM (4 months ago)
Author:
gziolo
Message:

Abilities API: Code quality fixes around translations

This aligns with how translations are handled across all places in the Abilities API codebase. It addresses the feedback raised during syncing back changes to Abilities API repository with https://github.com/WordPress/abilities-api/pull/126.

Developed in https://github.com/WordPress/wordpress-develop/pull/10424.

Follow-up [61032].
Props gziolo, jorgefilipecosta.
See #64098.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/abilities-api/class-wp-ability-category.php

    r61032 r61071  
    7676        if ( empty( $slug ) ) {
    7777            throw new InvalidArgumentException(
    78                 esc_html__( 'The ability category slug cannot be empty.' )
     78                __( 'The ability category slug cannot be empty.' )
    7979            );
    8080        }
     
    212212     */
    213213    public function __sleep(): array {
    214         throw new LogicException( __CLASS__ . ' should never be serialized' );
     214        throw new LogicException( __CLASS__ . ' should never be serialized.' );
    215215    }
    216216}
Note: See TracChangeset for help on using the changeset viewer.