PHP Classes

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

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   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: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: 2 days ago
Size: 994 bytes
 

Contents

Class file image Download
<?xml version="1.0"?> <documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd" title="Escaped Not Translated" > <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>