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

Making WordPress.org noreply at wordpress.org
Thu Dec 2 01:08:36 UTC 2021


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

Comment (by dd32):

 Replying to [comment:1 ryelle]:
 > The script also checks PHP files for `register_block_type`, but it
 doesn't even try to find a title.

 At the time of it being written, I'm almost certain that it didn't support
 the `title` arg, I recall that being a fairly annoying part of listing
 blocks as it was a situation of "Well, we know the block slug, but can't
 tell you what you'll see it as inside the editor".

 It's an even worse situation now though, as it accepts a `WP_Block_Type`
 object too, which we also can't parse out of it easily without running the
 plugin.. Unless we can do something like a regex similar to
 `WP_Block_Type\(.+slug=().+title=()`

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


More information about the wp-meta mailing list