Making WordPress.org


Ignore:
Timestamp:
08/17/2020 05:23:02 AM (4 years ago)
Author:
tellyworth
Message:

Plugin dir: check for unique namespaces in the block checker.

This should permit block namespaces to be reused by the same author, but otherwise require that the namespace be unique.

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

    r10128 r10173  
    328328            case 'check_for_multiple_namespaces':
    329329                return __( 'Block plugins should contain a single main block. Any children blocks should use the same namespace prefix as the main block. Please ensure there are no extraneous blocks included by mistake.', 'wporg-plugins' );
     330            case 'check_for_unique_namespace':
     331                return __( 'Blocks should use a namespace that is unique to the plugin or its author. It appears this namespace is already in use by another author. If that’s not you then please ensure you choose a unique namespace for your blocks. The plugin slug is a good choice.' );
    330332            // This is a special case, since multiple values may be collapsed.
    331333            case 'check_block_json_is_valid':
Note: See TracChangeset for help on using the changeset viewer.