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

WordPress Trac noreply at wordpress.org
Tue Feb 20 05:17:22 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 ankitmaru):

 Absolutely agree with @swissspidy's assessment. It's crucial to maintain
 consistent naming conventions in WordPress Core, especially considering
 the vast ecosystem built around it.

 Renaming data_wp_context() to something more descriptive like
 **wp_interactivity_get_context_attribute** or
 **wp_interactivity_context_attr** would not only enhance clarity but also
 contribute to better code readability and maintainability.

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


More information about the wp-trac mailing list