Skip to content

Commit

Permalink
Isolate ternary condition, so it is properly checked
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed Nov 7, 2024
1 parent 29b1f78 commit 6f61488
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/classes/Feature/Facets/Facets.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,18 @@ public function __construct() {
$this->title = esc_html__( 'Filters', 'elasticpress' );

$this->summary = '<p>' .
wp_is_block_theme()
( wp_is_block_theme()
? sprintf(
/* translators: Site Editor URL */
__( 'Adds <a href="%s">filter blocks</a> that administrators can add to the website’s templates and template parts, so that visitors can filter applicable content and search results by one or more taxonomy terms, metafields, and date ranges.', 'elasticpress' ),
__( ' Adds <a href="%s">filter blocks</a> that administrators can add to the website’s templates and template parts, so that visitors can filter applicable content and search results by one or more taxonomy terms, metafields, and date ranges.', 'elasticpress' ),
esc_url( admin_url( 'site-editor.php' ) )
)
: sprintf(
/* translators: Widgets Edit Screen URL */
__( 'Adds <a href="%s">filter widgets</a> that administrators can add to the website’s sidebars (widgetized areas), so that visitors can filter applicable content and search results by one or more taxonomy terms, metafields, and date ranges.', 'elasticpress' ),
esc_url( admin_url( 'widgets.php' ) )
)
. '</p>';
) . '</p>';

$this->docs_url = __( 'https://www.elasticpress.io/documentation/article/configuring-elasticpress-via-the-plugin-dashboard/#filters', 'elasticpress' );

Expand Down

0 comments on commit 6f61488

Please sign in to comment.