New theme requirement: We should escape all strings with esc_html__() and only use __() when the wp_kses() is used! ok no problem!
https://gist.github.com/kailoon/01fa8e95d2e910e666c6
https://developer.wordpress.org/themes/functionality/internationalization/#escaping-strings
But when we use option panels, we save all options into array and pass it to the generator to do more with less! and we know strings should ‘escaped late’.
for example:
$filed = array(
'name' => __( 'Homepage', 'better-studio' ),
'type' => 'group',
'state' => 'close',
);
// somewhere else
<h1><?php esc_html__( $filed['name'], 'textdomain' ); ?></h1>
But the reviewers are rejecting our theme because they say we should escape the array and also we should escape it in printing ( because they search ‘echo $’… )! There is no need to first escaping! http://envato.d.pr/oWR7/xLctXoDy
Any idea how we should fix this with reviewers?