xarxaprod-wp-theme/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/DeprecatedClassesStandard.xml

20 lines
534 B
XML
Raw Normal View History

2024-01-09 16:13:20 +01:00
<documentation title="Deprecated Classes">
<standard>
<![CDATA[
Please refrain from using deprecated WordPress classes.
]]>
</standard>
<code_comparison>
<code title="Valid: use of a current (non-deprecated) class.">
<![CDATA[
$a = new <em>WP_User_Query</em>();
]]>
</code>
<code title="Invalid: use of a deprecated class.">
<![CDATA[
$a = new <em>WP_User_Search</em>(); // Deprecated WP 3.1.
]]>
</code>
</code_comparison>
</documentation>