[wp-trac] [WordPress Trac] #59827: wp_save_post_revision() assumes ALL post meta is text! Fatal error in PHP 8.2.
WordPress Trac
noreply at wordpress.org
Thu Dec 21 11:28:36 UTC 2023
#59827: wp_save_post_revision() assumes ALL post meta is text! Fatal error in PHP
8.2.
-------------------------------------------------+-------------------------
Reporter: jsmoriss | Owner:
| adamsilverstein
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting
| Review
Component: Revisions | Version: 6.3.2
Severity: normal | Resolution:
Keywords: reporter-feedback has-patch has- | Focuses: php-
unit-tests | compatibility
-------------------------------------------------+-------------------------
Comment (by th0masmb):
I'm suggesting just adding a check to normalize_whitespace where it checks
if the variable is in fact a string, and if not, simply return it. Like
mentioned above, this has been a long standing issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59827#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list