Skip to content

Commit

Permalink
Fix linter offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
zaguiini committed Mar 28, 2022
1 parent 96ff32b commit 9263fce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/compat/wordpress-6.0/class-wp-webfonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function enqueue_webfont( $font_family_name ) {
if ( isset( $this->enqueued_webfonts[ $slug ] ) ) {
trigger_error(
sprintf(
/* translators: %s unique slug to identify the webfont */
/* translators: %s unique slug to identify the font family of the webfont */
__( 'The "%s" font family is already enqueued.', 'gutenberg' ),
$slug
)
Expand All @@ -140,7 +140,8 @@ public function enqueue_webfont( $font_family_name ) {
}

if ( ! isset( $this->registered_webfonts[ $slug ] ) ) {
_doing_it_wrong( __FUNCTION__, sprintf( __( 'The "%s" font family is not registered.' ), $slug ), '6.0.0' );
/* translators: %s unique slug to identify the font family of the webfont */
_doing_it_wrong( __FUNCTION__, sprintf( __( 'The "%s" font family is not registered.', 'gutenberg' ), $slug ), '6.0.0' );

return false;
}
Expand All @@ -161,7 +162,7 @@ public static function get_font_slug( $to_convert ) {
} elseif ( isset( $to_convert['fontFamily'] ) ) {
$to_convert = $to_convert['fontFamily'];
} else {
_doing_it_wrong( __FUNCTION__, __( 'Could not determine the font family name.' ), '6.0.0' );
_doing_it_wrong( __FUNCTION__, __( 'Could not determine the font family name.', 'gutenberg' ), '6.0.0' );
return false;
}
}
Expand Down

0 comments on commit 9263fce

Please sign in to comment.