[wp-trac] [WordPress Trac] #32670: Menu names in customizer shows HTML entities
WordPress Trac
noreply at wordpress.org
Wed Jun 17 13:14:27 UTC 2015
#32670: Menu names in customizer shows HTML entities
--------------------------+--------------------
Reporter: markoheijnen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.3
Component: Customize | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+--------------------
Comment (by markoheijnen):
The following code does work. I placed it inside
{{{WP_Customize_Panel->json();}}}
{{{$array['title'] = $output = preg_replace_callback("/(&#[0-9]+;)/",
function($m) { return mb_convert_encoding($m[1], "UTF-8", "HTML-
ENTITIES"); }, $array['title']);}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32670#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list