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.php

    r61067 r61071  
    275275            sprintf(
    276276                /* translators: 1: wp_abilities_api_init, 2: string value of the ability name. */
    277                 esc_html__( 'Abilities must be registered on the %1$s action. The ability %2$s was not registered.' ),
     277                __( 'Abilities must be registered on the %1$s action. The ability %2$s was not registered.' ),
    278278                '<code>wp_abilities_api_init</code>',
    279279                '<code>' . esc_html( $name ) . '</code>'
Note: See TracChangeset for help on using the changeset viewer.