#34387 closed enhancement (wontfix)
New function: `the_theme_mod()`
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Themes | Keywords: | has-patch |
Focuses: | Cc: |
Description
For example:
<img src="<?php the_theme_mod( 'logo' ); ?>" alt=""/>
OR
<div><?php the_theme_mod( 'copyright_text' ); ?></div>
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
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' ) )
andecho esc_html( get_theme_mod( 'copyright_text' ) )
instead.