WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #47645, comment 2


Ignore:
Timestamp:
07/03/2019 05:13:26 PM (3 years ago)
Author:
davidbaumwald
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #47645, comment 2

    initial v1  
    1 @joyously Good point.  However, even if theme mods are purely presentational, this might also happen for fields used for something like percentage-based widths.  A possible fix, if deemed necessary, is to escape any `%` characters before a `$default` string is passed to the `sprintf` call in `get_theme_mod`.
     1@joyously Good point.  However, even if theme mods are purely presentational, this might also happen for fields used for something like percentage-based widths.  A possible fix, if deemed necessary, is to escape any `%` characters before a `$default` string is passed to the `sprintf()` call in `get_theme_mod()`.