[wp-trac] [WordPress Trac] #53138: Convert special HTML entities in characters in widgets descriptions
WordPress Trac
noreply at wordpress.org
Wed May 5 21:52:01 UTC 2021
#53138: Convert special HTML entities in characters in widgets descriptions
--------------------------+---------------------
Reporter: justinahinon | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.8
Component: Widgets | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+---------------------
Changes (by audrasjb):
* milestone: Awaiting Review => 5.8
Comment:
Yes @justinahinon, you can't use a PHP function inside a gettext function.
`__( html_entity_decode( 'Your site’s most recent Posts.' ) )`
Should be replaced with something like:
`html_entity_decode( __( 'Your site’s most recent Posts.' ) )`
Moving for 5.8 consideration since it's related to trunk.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53138#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list