[wp-trac] [WordPress Trac] #58562: Doc block for register_block_style missing style_handle

WordPress Trac noreply at wordpress.org
Fri Jun 16 18:16:46 UTC 2023


#58562: Doc block for register_block_style missing style_handle
--------------------------+-----------------------------
 Reporter:  bacoords      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 The `style_properties` parameter in the doc block for the
 `register_block_style` function should say `style_handle` not `style`.

 Correct example would look like:

 {{{
  * @param array  $style_properties Array containing the properties of the
 style name,
  *                                 label, style_handle (name of the
 stylesheet to be enqueued),
  *                                 inline_style (string containing the CSS
 to be added).
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58562>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list