Skip to content

Commit 7c52c74

Browse files
committed
Learn: Sync with git WordPress/Learn@73a9d49
git-svn-id: https://meta.svn.wordpress.org/sites/trunk@14807 74240141-8908-4e6f-9713-ba540dce6ec7
1 parent c1eb7f6 commit 7c52c74

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/inc/block-config.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,9 @@ function inject_other_filters( $key ) {
555555
if ( ! isset( $wp_query->query[ $single_query_var ] ) ) {
556556
continue;
557557
}
558+
if ( ! is_string( $wp_query->query[ $single_query_var ] ) ) {
559+
continue;
560+
}
558561
if ( $key === $single_query_var ) {
559562
continue;
560563
}
@@ -572,6 +575,9 @@ function inject_other_filters( $key ) {
572575
}
573576
$values = (array) $wp_query->query[ $multi_query_var ];
574577
foreach ( $values as $value ) {
578+
if ( ! is_string( $value ) ) {
579+
continue;
580+
}
575581
printf( '<input type="hidden" name="%s[]" value="%s" />', esc_attr( $multi_query_var ), esc_attr( $value ) );
576582
}
577583
}
@@ -586,12 +592,15 @@ function inject_other_filters( $key ) {
586592
continue;
587593
}
588594
foreach ( $values as $value ) {
595+
if ( ! is_string( $value ) ) {
596+
continue;
597+
}
589598
printf( '<input type="hidden" name="%s[]" value="%s" />', esc_attr( $meta_query_var ), esc_attr( $value ) );
590599
}
591600
}
592601

593602
// Pass through search query.
594-
if ( isset( $wp_query->query['s'] ) ) {
603+
if ( isset( $wp_query->query['s'] ) && is_string( $wp_query->query['s'] ) ) {
595604
printf( '<input type="hidden" name="s" value="%s" />', esc_attr( $wp_query->query['s'] ) );
596605
}
597606
}

wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Author: WordPress.org
55
* Author URI: http://wordpress.org/
66
* Description: A theme for learn.wordpress.org, built in 2024.
7-
* Version: 1.0.0-9cdeabd
7+
* Version: 1.0.0-1904513
88
* License: GNU General Public License v2 or later
99
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010
* Text Domain: wporg-learn

0 commit comments

Comments
 (0)