Skip to content

Commit

Permalink
Check for unique URLs only once
Browse files Browse the repository at this point in the history
  • Loading branch information
dilirity committed Dec 20, 2024
1 parent ea5f77f commit 594c0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/plugins/boost/app/lib/Cornerstone_Pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private function default_pages() {

$homepage = array( '' );

$urls = array_unique( array_merge( $homepage, $woocommerce_pages, $yoast_cornerstone_pages ) );
$urls = array_merge( $homepage, $woocommerce_pages, $yoast_cornerstone_pages );
$urls = array_map( 'untrailingslashit', $urls );
$urls = array_unique( $urls );

Expand Down

0 comments on commit 594c0bf

Please sign in to comment.