Closed BraadMartin closed 9 years ago
Nice work @BraadMartin.
@BraadMartin and @dashaluna
Looking again, I'm noticing that __()
seems to typically be used in non-output scenarios (e.g. plugin name, widget title, etc), whereas esc_html__()
is used in contexts that involve direct HTML output. I still don't understand why you need to escape within those contexts though, if you have total control over the string/markup being output. Is it just to protect against translations that include faulty markup?
@MickeyKay I feel like we're highjacking this PR a bit :) I wondered if you could copy these comments to my PR and we can continue discussion there. I hope that's ok.
After some testing I realized that calling update_option passes the options through the sanitize callback defined in register_setting before saving to the database, so there's no need to do this manually before calling update_option.
@BraadMartin sorry, I'm a bit confused what you're referring to? Could you explain a bit more?
@MickeyKay I've added a comment to my PR, not to hijack this one :) https://github.com/MickeyKay/better-font-awesome/pull/5#issuecomment-92774412
PS - it's cool, Braad and I work together so we're chatting about this daily anyways :)
For added slickness.