Skip to content

Commit

Permalink
Boost: Don't add a posts page if front page is set but not the posts …
Browse files Browse the repository at this point in the history
…page (#39862)
  • Loading branch information
haqadn authored Oct 22, 2024
1 parent d149b43 commit 023040d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public static function get_critical_source_urls( $context_posts = array() ) {
if ( ! empty( $permalink ) ) {
$urls['posts_page'] = array( $permalink );
}
} else {
$urls['posts_page'] = (array) home_url( '/' );
} elseif ( ! $front_page ) {
$urls['posts_page'] = array( home_url( '/' ) );
}

return $urls;
Expand Down
4 changes: 4 additions & 0 deletions projects/plugins/boost/changelog/update-ccss-core-providers
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Critical CSS: Make the list of critical CSS URLs more efficient.

0 comments on commit 023040d

Please sign in to comment.