[wp-trac] [WordPress Trac] #60575: Refactor: `data_wp_context` function does not follow WP standards.

WordPress Trac noreply at wordpress.org
Tue Feb 20 06:13:46 UTC 2024


#60575: Refactor: `data_wp_context` function does not follow WP standards.
--------------------------------------+---------------------
 Reporter:  cbravobernal              |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  6.5
Component:  Editor                    |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |     Focuses:
--------------------------------------+---------------------

Comment (by gziolo):

 The name looked fine when surrounded by isolated Interactivity API code. I
 agree it should get updated as it is too generic.

 Aside, I'm still unsure I like this emerging pattern of helper methods
 that return a string formatted as an HTML partial of an attribute name and
 its value. In this case, it's helpful, but we should seek better ways to
 construct HTML as explored in #60229.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60575#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list