[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
Tue Nov 7 18:07:47 UTC 2023


#59827: wp_save_post_revision() assumes ALL post meta is text! Fatal error in PHP
8.2.
--------------------------+--------------------------------
 Reporter:  jsmoriss      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Revisions     |     Version:  6.3.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  php-compatibility
--------------------------+--------------------------------

Comment (by jsmoriss):

 Note that there are no hooks here https://github.com/WordPress/wordpress-
 develop/blob/6.3/src/wp-includes/revision.php#L163-L168 to manage the
 comparison.

 In the upcoming WP v6.4 release there is a new filter
 '_wp_post_revision_field_{meta_name}' to manage the ''visual'' comparison.
 In the case of an array, the var_export() function can be used to allow
 the revision diff to work as expected.

 js.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59827#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list