[wp-meta] [Making WordPress.org] #6170: Ignore blocks with variables in the name.

Making WordPress.org noreply at wordpress.org
Thu Apr 21 02:00:06 UTC 2022

#6170: Ignore blocks with variables in the name.
 Reporter:  dd32              |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:
Component:  Plugin Directory  |  Resolution:
 Keywords:                    |

Comment (by dd32):

 Replying to [comment:2 qriouslad]:
 > In v1.1.1 I tried commenting out line 301 and line 321-331, but "This
 plugin provdes 1 block" notice still appears on the plugin description

 The check is based on regular expressions, not code execution, so
 commenting it out would've made no difference.

 > The culprit could be this js file:
 which has a registerBlockType function?

 Yes. The idea of this ticket is that this code should not be triggering
 the block extraction:
 registerBlockType('csf-gutenberg-block/block-'+block.hash, {

 If it was {{{registerBlockType('csf-gutenberg-block/block-', {}}} then
 that should be imported, but as the block name/slug there is being
 concatenated, we should probably ignore it.

Ticket URL: <https://meta.trac.wordpress.org/ticket/6170#comment:4>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org

More information about the wp-meta mailing list