WPIntell

Source evidence

post_type php error

BlockMeister – Block Pattern Builder · support · 2025-01-17T12:27:00+00:00

mixedsentiment
mediumseverity
0.78relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 35 rows with source links

14.3% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

30 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
memoryfun3 resolved
in \plugins\blockmeister\includes\Pattern_Builder\Admin\BlockMeister_Pattern_List_Table.php there is post_type php error on line 948. The issue occurs in the line $wp_query->query['post_type'] which triggers an error if the post_type key does not exist. After modifying the code as follows, the error message no longer appears. public function filter_table_list_rows_on_category( $posts, $wp_query ) { if ( !isset( $wp_query->query['post_type'] ) || $wp_query->query['post_type'] !== 'blockmeister_pattern' || !isset( $_GET['filter_action'] ) || !isset( $_GET['category'] ) || $_GET['category'] === '0' ) { return $posts; } $category_filter = $_GET['category']; $filtered_posts = []; foreach ( $posts as $post ) { $pattern_name = $this->get_pattern_name( $post ); $registered_block_pattern = $this->get_registered_pattern( $pattern_name ); $pattern_categories = ( isset( $registered_block_pattern['categories'] ) ? $registered_block_pattern['categories'] : [] ); if ( in_array( $category_filter, $pattern_categories, true ) ) { $filtered_posts[] = $post; } } return $filtered_posts; } This topic was modified 1 year, 4 months ago by memoryfun3 . Thank you for taking the time for reporting and finding and sharing the fix! I will add the fix in the next minor release (planned by the end of this month). I will update this topic when the fix version has been released. The new version (3.1.12) with the fix has been released.

Comments

2 shown
BlockMeister 2025-01-17T12:46:00+00:00

Thank you for taking the time for reporting and finding and sharing the fix! I will add the fix in the next minor release (planned by the end of this month). I will update this topic when the fix version has been released.

BlockMeister 2025-01-27T00:15:00+00:00

The new version (3.1.12) with the fix has been released.