Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #59827, comment 16


Ignore:
Timestamp:
11/09/2023 05:50:30 PM (18 months ago)
Author:
jsmoriss
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59827, comment 16

    initial v1  
    55The "'_wp_post_revision_field_' . meta_key" filter is only used for the diff shown to users on the revision page.
    66
    7 The problem is the compare done in wp_save_post_revision() (see https://github.com/WordPress/wordpress-develop/blob/6.3/src/wp-includes/revision.php#L109) which WordPress uses to determine if a revision needs to be saved - it assumes that all post meta are strings.
     7The problem is the compare done in `wp_save_post_revision()` (see https://github.com/WordPress/wordpress-develop/blob/6.3/src/wp-includes/revision.php#L109) which WordPress uses to determine if a revision needs to be saved - it assumes that all post meta are strings.
    88
    99> ps. it would be good to add a test here to validate any fix we come up with.