• QerraPress

    (@tronoxas)


    Should I just use esc_attr on integer? Or convert it to string first?

    font-size: <?php if ( get_theme_mod('quidus_h1_size') != '' ) : esc_attr_e((string)(intval(get_theme_mod('quidus_h1_size')) * 0.039)); ?>rem <?php endif; ?>;

The topic ‘Escaping integer in customizer’ is closed to new replies.