| @@ -9,10 +9,9 @@ | ||
| 9 | 9 | declare(strict_types=1); |
| 10 | 10 | |
| 11 | 11 | namespace Parsely\Metadata; |
| 12 | 12 | |
| 13 | -use function Parsely\Utils\get_date_format; | |
| 14 | -use function Parsely\Utils\get_time_format; | |
| 13 | +use Parsely\Utils\Utils; | |
| 15 | 14 | |
| 16 | 15 | /** |
| 17 | 16 | * Implements abstract Metadata Builder class to generate the metadata array |
| 18 | 17 | * for a date page. |
| @@ -41,9 +40,9 @@ | ||
| 41 | 40 | * |
| 42 | 41 | * @since 3.4.0 |
| 43 | 42 | */ |
| 44 | 43 | private function build_headline(): void { |
| 45 | - $site_date_format = get_date_format(); | |
| 44 | + $site_date_format = Utils::get_date_format(); | |
| 46 | 45 | |
| 47 | 46 | if ( is_year() ) { |
| 48 | 47 | /* translators: %s: Archive year */ |
| 49 | 48 | $this->metadata['headline'] = sprintf( __( 'Yearly Archive - %s', 'wp-parsely' ), get_the_time( 'Y' ) ); |
| @@ -53,9 +52,9 @@ | ||
| 53 | 52 | } elseif ( is_day() ) { |
| 54 | 53 | /* translators: %s: Archive day, formatted as F jS, Y */ |
| 55 | 54 | $this->metadata['headline'] = sprintf( __( 'Daily Archive - %s', 'wp-parsely' ), get_the_time( $site_date_format ) ); |
| 56 | 55 | } elseif ( is_time() ) { |
| 57 | - $site_time_format = get_time_format(); | |
| 56 | + $site_time_format = Utils::get_time_format(); | |
| 58 | 57 | /* translators: %s: Archive time, formatted as F jS g:i:s A */ |
| 59 | 58 | $this->metadata['headline'] = sprintf( __( 'Hourly, Minutely, or Secondly Archive - %s', 'wp-parsely' ), get_the_time( "{$site_date_format} {$site_time_format}" ) ); |
| 60 | 59 | } |
| 61 | 60 | } |