[wp-meta] [Making WordPress.org] #5971: Plugin Directory: Custom Block Names not being listed right

Making WordPress.org noreply at wordpress.org
Fri May 6 10:56:41 UTC 2022


#5971: Plugin Directory: Custom Block Names not being listed right
------------------------------+---------------------
 Reporter:  Ipstenu           |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:
Component:  Plugin Directory  |  Resolution:
 Keywords:                    |
------------------------------+---------------------

Comment (by Dudo):

 I'm not sure to understand.

 I'm loading blocks now, with [https://plugins.trac.wordpress.org/browser
 /yet-another-stars-
 rating/trunk/includes/classes/YasrScriptsLoader.php#L432/
 register_block_type_from_metadata].

 This is [https://plugins.trac.wordpress.org/browser/yet-another-stars-
 rating/trunk/admin/editor/blocks/yasrOverallRating.block.json an example]
 of *.block.json file that I use, with title attribute on top.

 Now, these new blocks doesn't [https://wordpress.org/plugins/yet-another-
 stars-rating/ appear at all] .

 Should I use register_block_type instead of
 register_block_type_from_metadata ?
 Or maybe the custom name od the block.json file is the problem?

 Thank you

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/5971#comment:14>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list