File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ This is an alpha version! The changes listed here are not final.
15
15
16
16
### Fixed
17
17
- Components: Add __ next40pxDefaultSize to controls, preventing deprecation notices.
18
+ - Forms: Fix ` source ` filtering in classic view for responses management
18
19
- Forms: Prevent custom label font sizes preventing animated label font size reduction
19
20
- Placeholder should always display if it's a non-empty string
20
21
Original file line number Diff line number Diff line change @@ -862,8 +862,13 @@ public function grunion_source_filter_results( $query ) {
862
862
return ;
863
863
}
864
864
865
- // Don't apply to the filter dropdown query
866
- if ( $ query ->query_vars ['fields ' ] === 'id=>parent ' ) {
865
+ /**
866
+ * In the wp-admin list we perform two queries that trigger the `pre_get_posts` hook.
867
+ * One is for the main list and the other is for the `source` dropdown filter.
868
+ * We need to explicitly check one unique parameter between the two queries to avoid
869
+ * filtering the dropdown query. The dropdown query is in `get_all_parent_post_ids`.
870
+ */
871
+ if ( $ query ->query_vars ['posts_per_page ' ] === 100000 ) {
867
872
return ;
868
873
}
869
874
You can’t perform that action at this time.
0 commit comments