[wp-trac] [WordPress Trac] #56796: Naming of filters in `class-wp-theme-json-resolver.php` (`theme_json_*`)

WordPress Trac noreply at wordpress.org
Tue Oct 11 16:07:29 UTC 2022


#56796: Naming of filters in `class-wp-theme-json-resolver.php` (`theme_json_*`)
--------------------------+-----------------------------
 Reporter:  kebbet        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 With 6.1 we are introducing filters for theme.json, all named
 `theme_json_*` which results in filters like:
 - `theme_json_default`
 - `theme_json_theme`
 - `theme_json_blocks`
 - `theme_json_user`
 - `theme_json_theme`

 Are we ok with this?

 To me, the naming is a bit odd, espcially `theme_json_theme`. Could better
 names for the filter be used?

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


More information about the wp-trac mailing list