Changeset 11097 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-block-validator.php
- Timestamp:
- 07/06/2021 08:33:48 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-block-validator.php
r10737 r11097 384 384 if ( empty( $results_by_type[ $type ] ) ) { 385 385 // Print out the warning wrapper if we have block.json issues. 386 if ( ' warning' !== $type || empty( $block_json_issues ) ) {386 if ( 'error' !== $type || empty( $block_json_issues ) ) { 387 387 continue; 388 388 } … … 405 405 } 406 406 // Collapse block.json warnings into one details at the end of warnings list. 407 if ( ' warning' === $type && ! empty( $block_json_issues ) ) {407 if ( 'error' === $type && ! empty( $block_json_issues ) ) { 408 408 $messages = wp_list_pluck( $block_json_issues, 'message' ); 409 409 $details = '<p>' . implode( '</p><p>', (array) $messages ) . '</p>';
Note: See TracChangeset
for help on using the changeset viewer.