Skip to content

Commit 2340186

Browse files
gzioloaaronjorbin
andcommitted
Apply suggestions from code review
Co-authored-by: Aaron Jorbin <[email protected]>
1 parent 50ee0ae commit 2340186

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wp-includes/abilities-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function wp_register_ability_category( string $slug, array $args ): ?WP_Ability_
142142
__METHOD__,
143143
sprintf(
144144
/* translators: 1: abilities_api_categories_init, 2: ability category slug. */
145-
__( 'Ability categories must be registered on the %1$s action. The category %2$s was not registered.' ),
145+
__( 'Ability categories must be registered on the %1$s action. The ability category %2$s was not registered.' ),
146146
'<code>wp_abilities_api_categories_init</code>',
147147
'<code>' . esc_html( $slug ) . '</code>'
148148
),

src/wp-includes/abilities-api/class-wp-abilities-registry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function register( string $name, array $args ): ?WP_Ability {
127127
__METHOD__,
128128
sprintf(
129129
/* translators: %1$s: ability category slug, %2$s: ability name */
130-
__( 'Ability category "%1$s" is not registered. Please register the category before assigning it to ability "%2$s".' ),
130+
__( 'Ability category "%1$s" is not registered. Please register the ability category before assigning it to ability "%2$s".' ),
131131
esc_html( $args['category'] ),
132132
esc_html( $name )
133133
),

0 commit comments

Comments
 (0)