fix: bound CHRNX editorial queries
This commit is contained in:
5 files changed
+429
-87
No files matched your search
@@ -14,10 +14,11 @@ $chrnx_heading = chrnx_get_heading_level( $attributes['headingLevel'] ?? 2, 2 )
|
||||
$chrnx_topic = chrnx_validate_editorial_term_slug( $chrnx_request['chrnx_topic'] ?? '', 'chrnx_topic' );
|
||||
$chrnx_language = chrnx_validate_editorial_term_slug( $chrnx_request['chrnx_language'] ?? '', 'chrnx_language' );
|
||||
$chrnx_search = $chrnx_args['s'] ?? '';
|
||||
$chrnx_form_url = strtok( get_pagenum_link( 1, false ), '?' );
|
||||
$chrnx_form_url = chrnx_get_journal_base_url();
|
||||
$chrnx_title_id = wp_unique_id( 'chrnx-journal-title-' );
|
||||
?>
|
||||
<section <?php echo get_block_wrapper_attributes( array( 'class' => 'chrnx-journal-stream' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> aria-labelledby="chrnx-journal-title">
|
||||
<h<?php echo esc_attr( $chrnx_heading ); ?> id="chrnx-journal-title"><?php echo esc_html__( 'Journal', 'chrnx' ); ?></h<?php echo esc_attr( $chrnx_heading ); ?>>
|
||||
<section <?php echo get_block_wrapper_attributes( array( 'class' => 'chrnx-journal-stream' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> aria-labelledby="<?php echo esc_attr( $chrnx_title_id ); ?>">
|
||||
<h<?php echo esc_attr( $chrnx_heading ); ?> id="<?php echo esc_attr( $chrnx_title_id ); ?>"><?php echo esc_html__( 'Journal', 'chrnx' ); ?></h<?php echo esc_attr( $chrnx_heading ); ?>>
|
||||
<form class="chrnx-journal-stream__filters" method="get" action="<?php echo esc_url( $chrnx_form_url ); ?>">
|
||||
<label>
|
||||
<span><?php echo esc_html__( 'Topic', 'chrnx' ); ?></span>
|
||||
@@ -103,4 +104,3 @@ $chrnx_form_url = strtok( get_pagenum_link( 1, false ), '?' );
|
||||
<p class="chrnx-journal-stream__empty"><?php echo esc_html__( 'No journal entries match these filters yet.', 'chrnx' ); ?></p>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
Reference in new issue
Block a user