Making WordPress.org


Ignore:
Timestamp:
08/05/2020 03:37:07 AM (4 years ago)
Author:
tellyworth
Message:

Plugin directory: check block plugins for multiple namespaces.

See #5303.

File:
1 edited

Legend:

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

    r10111 r10118  
    326326            case 'check_total_size':
    327327                return __( 'Larger plugins will take longer to install. This is more noticeable in the Block Directory, where the user expects blocks to be added immediately. Try reducing your file size by optimizing images & SVGs, only including the assets you need (images, fonts, etc), and using core-provided JavaScript libraries.', 'wporg-plugins' );
     328            case 'check_for_multiple_namespaces':
     329                return __( 'Block plugins should contain a single main block. Please ensure there are no extraneous blocks included by mistake.' );
    328330            // This is a special case, since multiple values may be collapsed.
    329331            case 'check_block_json_is_valid':
Note: See TracChangeset for help on using the changeset viewer.