Making WordPress.org


Ignore:
Timestamp:
08/14/2020 04:55:26 AM (6 years ago)
Author:
tellyworth
Message:

Plugin dir: catch more multi-block plugins.

This makes the block plugin checker more strict about plugins that contain many top-level blocks, which won't work in the block directory.

See #5303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-block-plugin-checker.php

    r10128 r10171  
    683683                        $this->record_result(
    684684                                __FUNCTION__,
    685                                 'warning',
     685                                ( count( $top_level_blocks ) > 4 ? 'error' : 'warning' ), // error or warning depending on how many
    686686                                sprintf(
    687687                                        /* translators: %s is a list of block names. */
Note: See TracChangeset for help on using the changeset viewer.