Skip to content

Commit

Permalink
Minor docs cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dlh01 committed Feb 11, 2025
1 parent 0fa6028 commit 963679f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/apple-exporter/components/class-recipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ private function matching_schema( $recipe ): ?array {
}

// Second, try to find schema in the HEAD of the post on the frontend.
// Could check BODY as well, but the post content is already being scanned, which might be enough?
// Could check BODY as well, but the post content is already being scanned. That might be enough.

/**
* Filters the URL for an article that will be fetched and searched for JSON-LD Recipe items.
Expand Down Expand Up @@ -1082,12 +1082,12 @@ private function duration( \DateInterval $di ) {
$out = [];

if ( $hours > 0 ) {
// translators: %d is the number of hours.
/* translators: %d: number of hours */
$out[] = sprintf( __( '%d hr', 'apple-news' ), $hours / HOUR_IN_SECONDS );
}

if ( $minutes > 0 ) {
// translators: %d is the number of minutes.
/* translators: %d: number of minutes */
$out[] = sprintf( __( '%d mins', 'apple-news' ), (int) round( $minutes / MINUTE_IN_SECONDS ) );
}

Expand Down

0 comments on commit 963679f

Please sign in to comment.