Changes between Initial Version and Version 3 of Ticket #48117
- Timestamp:
- 09/24/2019 05:20:32 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #48117
-
Property
Component
changed from
General
toToolbar
-
Property
Component
changed from
-
Ticket #48117 – Description
initial v3 1 I noticed that when the onclick attribute value is specified with the 'meta' key of the add_menu method of $wp_admin_bar, the onclickattribute is output twice.1 I noticed that when the `onclick` attribute value is specified with the `meta` key of the `add_menu` method of `$wp_admin_bar`, the `onclick` attribute is output twice. 2 2 3 3 {{{ … … 43 43 }}} 44 44 45 The variable $attributes always contains 'onclick', so it escapes with the esc_attrfunction and outputs the attribute value.45 The variable `$attributes` always contains `onclick`, so it escapes with the `esc_attr` function and outputs the attribute value. 46 46 47 47 I hope that the onclick attribute will be output properly.