PluginProbe
Gutenberg / 24.1.0
Gutenberg v24.1.0
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | build/scripts/block-library/categories.php +4 -0 23.2.1 → 24.1.0 View file →
@@ -22,8 +22,12 @@
22 22 ++$block_id;
23 23
24 24 $taxonomy = get_taxonomy( $attributes['taxonomy'] );
25 25
26 + if ( ! $taxonomy ) {
27 + return '';
28 + }
29 +
26 30 $args = array(
27 31 'echo' => false,
28 32 'hierarchical' => ! empty( $attributes['showHierarchy'] ),
29 33 'orderby' => 'name',