Make WordPress Core


Ignore:
Timestamp:
07/07/2021 12:04:53 AM (4 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.
Merges [51362] to the 5.8 branch.
Fixes #53397.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/src/wp-includes/blocks/post-terms.php

    r50929 r51363  
    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.