基础代码

This commit is contained in:
2021-02-26 22:23:13 +08:00
parent 7884df52f0
commit a719feebba
2585 changed files with 328263 additions and 0 deletions
@@ -0,0 +1,20 @@
<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>