PHP Classes

File: vendor/wp-coding-standards/wpcs/WordPress/Docs/CodeAnalysis/EscapedNotTranslatedStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Nolimitbuzz WP Theme   vendor/wp-coding-standards/wpcs/WordPress/Docs/CodeAnalysis/EscapedNotTranslatedStandard.xml   Download  
File: vendor/wp-coding-standards/wpcs/WordPress/Docs/CodeAnalysis/EscapedNotTranslatedStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Nolimitbuzz WP Theme
WordPress theme to used as start of new themes
Author: By
Last change:
Date: 27 days ago
Size: 817 bytes
 

Contents

Class file image Download
<documentation title="Escaped Not Translated Text"> <standard> <![CDATA[ Text intended for translation needs to be wrapped in a localization function call. This sniff will help you find instances where text is escaped for output, but no localization function is called, even though an (unexpected) text domain argument is passed to the escape function. ]]> </standard> <code_comparison> <code title="Valid: esc_html__() used to translate and escape."> <![CDATA[ echo <em>esc_html__</em>( 'text', 'domain' ); ]]> </code> <code title="Invalid: esc_html() used to only escape a string intended to be translated as well."> <![CDATA[ echo <em>esc_html</em>( 'text', 'domain' ); ]]> </code> </code_comparison> </documentation>