Make WordPress Core


Ignore:
Timestamp:
07/06/2021 11:55:44 PM (3 years ago)
Author:
peterwilsoncc
Message:

Block Editor: Update packages with latest fixes for 5.8 RC2

Includes the following fixes:

  • Query Block: Type validation of WP_Query parameters.

Props ntsekouras, stevehenty, peterwilsoncc, desrosj.
Fixes #53397.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/post-terms.php

    r50929 r51362  
    1616function render_block_core_post_terms( $attributes, $content, $block ) {
    1717    if ( ! isset( $block->context['postId'] ) || ! isset( $attributes['term'] ) ) {
     18        return '';
     19    }
     20
     21    if ( ! is_taxonomy_viewable( $attributes['term'] ) ) {
    1822        return '';
    1923    }
Note: See TracChangeset for help on using the changeset viewer.