Skip to content

Instantly share code, notes, and snippets.

@jrfnl
Last active Jun 20, 2021
Embed
What would you like to do?
FILE: src\wp-admin\admin.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
269 | ERROR | The default value of the $flags parameter for htmlentities() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-admin\includes\class-wp-automatic-updater.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1392 | ERROR | The default value of the $flags parameter for html_entity_decode() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-admin\includes\dashboard.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
1245 | ERROR | The default value of the $flags parameter for htmlentities() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
1247 | ERROR | The default value of the $flags parameter for htmlentities() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-admin\theme-editor.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
169 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-content\themes\twentyfourteen\inc\template-tags.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
28 | ERROR | The default value of the $flags parameter for html_entity_decode() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\class-wp-http-ixr-client.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
88 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
106 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\class-wp-oembed.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
485 | ERROR | The default value of the $flags parameter for htmlspecialchars_decode() was changed
| | from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\class-wp-text-diff-renderer-table.php
----------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------
160 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
198 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
223 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
303 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
311 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\class-wp-xmlrpc-server.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
978 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
6112 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\feed.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
611 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\formatting.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
5761 | ERROR | The default value of the $flags parameter for html_entity_decode() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
5799 | ERROR | The default value of the $flags parameter for html_entity_decode() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\functions.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
3846 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
3847 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\general-template.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
2455 | ERROR | The default value of the $flags parameter for htmlentities() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
4180 | ERROR | The default value of the $flags parameter for html_entity_decode() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\ID3\getid3.lib.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1360 | ERROR | The default value of the $flags parameter for htmlentities() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\IXR\class-IXR-client.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
92 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
131 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\IXR\class-IXR-error.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
20 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\IXR\class-IXR-value.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
93 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
106 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\PHPMailer\Exception.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
38 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\SimplePie\Parser.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
637 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
644 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\Text\Diff\Renderer\inline.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
203 | ERROR | The default value of the $flags parameter for htmlspecialchars() was changed from
| | ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE in PHP 8.1. For cross-version
| | compatibility, the $flags parameter should be explicitly set.
| | (PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet)
----------------------------------------------------------------------------------------------------
Time: 1 mins, 57.6 secs; Memory: 104MB
PHP CODE SNIFFER REPORT SUMMARY
-------------------------------------------------------------------------------
FILE ERRORS WARNINGS
-------------------------------------------------------------------------------
src\wp-admin\admin.php 1 0
src\wp-admin\theme-editor.php 1 0
src\wp-admin\includes\class-wp-automatic-updater.php 1 0
src\wp-admin\includes\dashboard.php 2 0
src\wp-content\themes\twentyfourteen\inc\template-tags.php 1 0
src\wp-includes\class-wp-http-ixr-client.php 2 0
src\wp-includes\class-wp-oembed.php 1 0
src\wp-includes\class-wp-text-diff-renderer-table.php 5 0
src\wp-includes\class-wp-xmlrpc-server.php 2 0
src\wp-includes\feed.php 1 0
src\wp-includes\formatting.php 2 0
src\wp-includes\functions.php 2 0
src\wp-includes\general-template.php 2 0
src\wp-includes\ID3\getid3.lib.php 1 0
src\wp-includes\IXR\class-IXR-client.php 2 0
src\wp-includes\IXR\class-IXR-error.php 1 0
src\wp-includes\IXR\class-IXR-value.php 2 0
src\wp-includes\PHPMailer\Exception.php 1 0
src\wp-includes\SimplePie\Parser.php 2 0
src\wp-includes\Text\Diff\Renderer\inline.php 1 0
-------------------------------------------------------------------------------
A TOTAL OF 33 ERRORS AND 0 WARNINGS WERE FOUND IN 20 FILES
-------------------------------------------------------------------------------
PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
------------------------------------------------------------------------------
SOURCE COUNT
------------------------------------------------------------------------------
PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet 33
------------------------------------------------------------------------------
A TOTAL OF 33 SNIFF VIOLATIONS WERE FOUND IN 1 SOURCE
------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment