Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #48117


Ignore:
Timestamp:
09/24/2019 05:20:32 AM (4 years ago)
Author:
whyisjake
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48117

    • Property Component changed from General to Toolbar
  • 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 onclick attribute is output twice.
     1I 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.
    22
    33{{{
     
    4343}}}
    4444
    45 The variable $attributes always contains 'onclick', so it escapes with the esc_attr function and outputs the attribute value.
     45The variable `$attributes` always contains `onclick`, so it escapes with the `esc_attr` function and outputs the attribute value.
    4646
    4747I hope that the onclick attribute will be output properly.