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

Making WordPress.org noreply at wordpress.org
Tue Mar 8 02:00:32 UTC 2022


#6170: Ignore blocks with variables in the name.
------------------------------+--------------------
 Reporter:  dd32              |      Owner:  (none)
     Type:  defect            |     Status:  new
 Priority:  normal            |  Milestone:
Component:  Plugin Directory  |   Keywords:
------------------------------+--------------------
 As mentioned in
 [https://wordpress.slack.com/archives/C1LBM36LC/p1646703454060329 slack],
 [https://wordpress.org/plugins/floating-share-button/ this plugin] shows a
 block defined where the author didn't intentionally add one.

 A framework used by the plugin turns out to call `register_block_type()`
 with a variable block name, and ultimately ends up with a truncated block
 name as a result of it.

 We should explicitly ignore any blocks that appear to use variables in
 their name parameter if possible.

 Example code:
 https://plugins.trac.wordpress.org/browser/floating-share-
 button/trunk/vendor/codestar-framework/classes/shortcode-
 options.class.php?rev=2690473&marks=325-331#L311

 Detected block: `csf-gutenberg-block/block-`

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


More information about the wp-meta mailing list