[wp-trac] [WordPress Trac] #34387: New function: `the_theme_mod()`
WordPress Trac
noreply at wordpress.org
Wed Oct 21 11:24:26 UTC 2015
#34387: New function: `the_theme_mod()`
------------------------------+------------------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------+------------------------------
Comment (by swissspidy):
You should always escape your output, which is not possible with a generic
`the_theme_mod` function.
I suggest using something like `echo esc_url( get_theme_mod( 'logo' ) )`
and `echo esc_html( get_theme_mod( 'copyright_text' ) )` instead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34387#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list