Skip to content

Instantly share code, notes, and snippets.

@jrfnl
Last active March 16, 2022 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrfnl/9d56b4053faa62a0fe91dea1b14839bf to your computer and use it in GitHub Desktop.
Save jrfnl/9d56b4053faa62a0fe91dea1b14839bf to your computer and use it in GitHub Desktop.
Action list for WP Core - Trac issue 53465: https://core.trac.wordpress.org/ticket/53465 - Last update: 2022-03-16
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.
----------------------------------------------------------------------------------------------------
FILE: src\wp-admin\includes\class-wp-automatic-updater.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1394 | 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.
----------------------------------------------------------------------------------------------------
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.
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.
----------------------------------------------------------------------------------------------------
FILE: src\wp-admin\theme-editor.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
170 | 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.
----------------------------------------------------------------------------------------------------
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.
----------------------------------------------------------------------------------------------------
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.
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.
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\class-wp-oembed.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
489 | 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.
----------------------------------------------------------------------------------------------------
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.
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.
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.
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.
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.
----------------------------------------------------------------------------------------------------
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.
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.
----------------------------------------------------------------------------------------------------
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.
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\formatting.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
5822 | 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.
5860 | 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.
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\functions.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
4068 | 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.
4069 | 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.
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\general-template.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
2482 | 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.
4207 | 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.
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\ID3\getid3.lib.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1367 | 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.
----------------------------------------------------------------------------------------------------
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.
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.
----------------------------------------------------------------------------------------------------
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.
----------------------------------------------------------------------------------------------------
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.
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.
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\SimplePie\Parser.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
655 | 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.
662 | 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.
----------------------------------------------------------------------------------------------------
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.
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\customize\nav-menus.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
326 | 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.
1146 | 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.
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\feed\rss2.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
262 | 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.
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\formatting\wpAutop.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
76 | 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.
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\xmlrpc\wp\editTerm.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
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.
----------------------------------------------------------------------------------------------------
Time: 2.16 secs; Memory: 16MB
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\SimplePie\Parser.php 2 0
src\wp-includes\Text\Diff\Renderer\inline.php 1 0
tests\phpunit\tests\customize\nav-menus.php 2 0
tests\phpunit\tests\feed\rss2.php 1 0
tests\phpunit\tests\formatting\wpAutop.php 1 0
tests\phpunit\tests\xmlrpc\wp\editTerm.php 1 0
-------------------------------------------------------------------------------
A TOTAL OF 37 ERRORS AND 0 WARNINGS WERE FOUND IN 23 FILES
-------------------------------------------------------------------------------
PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
-------------------------------------------------------------------------------
STANDARD CATEGORY SNIFF COUNT
-------------------------------------------------------------------------------
PHPCompa Parameter values New HTMLEntities flags default not set 37
-------------------------------------------------------------------------------
A TOTAL OF 37 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