Make WordPress Core


Ignore:
Timestamp:
10/27/2025 11:55:51 AM (5 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-categories-registry.php

    r61032 r61071  
    206206                __METHOD__,
    207207                sprintf(
    208                     __( 'Ability API should not be initialized before the <code>init</code> action has fired' )
     208                    // translators: %s: init action.
     209                    __( 'Ability API should not be initialized before the %s action has fired.' ),
     210                    '<code>init</code>'
    209211                ),
    210212                '6.9.0'
     
    250252     */
    251253    public function __sleep(): array {
    252         throw new LogicException( __CLASS__ . ' should never be serialized' );
     254        throw new LogicException( __CLASS__ . ' should never be serialized.' );
    253255    }
    254256}
Note: See TracChangeset for help on using the changeset viewer.