Making WordPress.org

Opened 6 years ago

Last modified 2 years ago

#5623 new defect (bug)

Blocks list incorrect on plugin directory page

Reported by: daisyo Owned by:
Priority: normal Milestone:
Component: Plugin Directory Keywords:
Cc:

Description

The blocks listed on some plugin directory pages don't appear to line up with what is available when the plugin is installed.

The example I identified is ​https://wordpress.org/plugins/layout-grid/

There are technically two blocks but one is only accessible as an inner block and they do have different names and labels in the plugin code.

For reference:

Block registration: ​https://github.com/Automattic/block-experiments/blob/master/blocks/layout-grid/index.php#L4

Block definitions: ​https://github.com/Automattic/block-experiments/blob/master/blocks/layout-grid/src/index.js

Change History (3)

#1 @dufresnesteven
6 years ago

Relevant Tickets: #5207 #5303

#2 @coffee2code
3 years ago

  • Component General → Plugin Directory
  • Summary Locks list incorrect on plugin directory page → Blocks list incorrect on plugin directory page

#3 @dd32
2 years ago

The example in question here now uses block.json for the parent block.

The way the WordPress.org extraction works, is that it uses either block.json OR the function call extraction.

Personally, I think it should do both.

Note: See TracTickets for help on using tickets.