sprintf(<span style="display:block;margin:4px 0 0;line-height:1.25em;font-size:95%%"> Image credit: %$s</span>
esc_html( $credit ));
I would like to add __()
function to translate Image Credit text.
sprintf(<span style="display:block;margin:4px 0 0;line-height:1.25em;font-size:95%%"> __('Image credit:','myTheme'); %$s</span>
esc_html( $credit ));