Skip to content

Commit d8e0ffe

Browse files
committed
Abilities API: Clarify the invalid permission configuration message.
1 parent c3ce0c2 commit d8e0ffe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/wp-includes/abilities-api/class-wp-ability.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ public function check_permissions( $input = null ) {
713713
return new WP_Error(
714714
'ability_invalid_permission_callback',
715715
/* translators: %s ability name. */
716-
sprintf( __( 'Ability "%s" does not have a valid permission callback.' ), $this->name )
716+
sprintf( __( 'Ability "%s" must provide a valid permission callback, or omit it and declare required capabilities.' ), $this->name )
717717
);
718718
}
719719

0 commit comments

Comments
 (0)