Skip to content

Commit

Permalink
Meta Descriptions: Avoid a warning when the for the front-page is una…
Browse files Browse the repository at this point in the history
…vailable.
  • Loading branch information
dd32 committed Jan 9, 2025
1 parent 5a72ec7 commit 4d2bfb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function( $html ) {

// Override the Front-page tags.
if ( is_front_page() ) {
$desc = $post->post_excerpt ? get_the_excerpt() : __( 'Open source software which you can use to easily create a beautiful website, blog, or app.', 'wporg' );
$desc = ! empty( $post->post_excerpt ) ? get_the_excerpt() : __( 'Open source software which you can use to easily create a beautiful website, blog, or app.', 'wporg' );
return array(
'og:type' => 'website',
'og:title' => __( 'Blog Tool, Publishing Platform, and CMS', 'wporg' ) . " - {$site_title}",
Expand Down

0 comments on commit 4d2bfb5

Please sign in to comment.