-
-
Save manutheblacker/10ea691857a64b94436725d17c15593b to your computer and use it in GitHub Desktop.
Revisions
-
kailoon revised this gist
Aug 15, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ <?php /** * Escape all translations with */ __( ‘Some String’, ‘text-domain’ ); _e( ‘Some string’, ‘text-domain’ );. -
kailoon created this gist
Aug 15, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ <?php /** * Please escape all translations with */ __( ‘Some String’, ‘text-domain’ ); _e( ‘Some string’, ‘text-domain’ );. /** * When there is no HTML use: */ esc_html__( ‘Some String’, ‘text-domain’ ); esc_html_e( ‘Some String’, ‘text-domain’ ); /** * For some HTML: */ wp_kses( __( ‘Some String something’, ‘text-domain’ ), $allowed_html_array );