Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #42608


Ignore:
Timestamp:
11/17/2017 08:36:47 PM (9 years ago)
Author:
flixos90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #42608

    • Property Keywords has-patch added; needs-patch removed
  • Ticket #42608 – Description

    initial v2  
    11When registering a sidebar, it can sometimes be useful to use simple HTML in the description for it, like a link or emphasized text. For example, I wanted to add a message like the following:
    22
    3 `__( 'In order for this sidebar to be active, you need to enable it first. You can do so <a href="...">in the Customizer.', 'my-theme' )` (the link would point to the respective area in the Customizer)
     3`__( 'In order for this sidebar to be active, you need to enable it first. You can do so <a href="...">in the Customizer</a>.', 'my-theme' )` (the link would point to the respective area in the Customizer)
    44
    55However, all HTML in sidebar descriptions is currently escaped on the Widgets page in the admin, which makes this impossible (generally, anytime when using the `wp_sidebar_description()` function). Using basic inline tags and attributes should be allowed. Strangely enough it ''is'' supported in the Customizer already, where this content is not escaped. So it should be similar on the admin page.