Changeset 56989
- Timestamp:
- 10/23/2023 07:54:27 PM (14 months ago)
- Location:
- branches/6.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.4
-
branches/6.4/src/wp-includes/revision.php
r56715 r56989 517 517 * Restore the revisioned meta values for a post. 518 518 * 519 * @since 6.4.0 520 * 519 521 * @param int $post_id The ID of the post to restore the meta to. 520 522 * @param int $revision_id The ID of the revision to restore the meta from. 521 *522 * @since 6.4.0523 523 */ 524 524 function wp_restore_post_revision_meta( $post_id, $revision_id ) { … … 541 541 * Copy post meta for the given key from one post to another. 542 542 * 543 * @since 6.4.0 544 * 543 545 * @param int $source_post_id Post ID to copy meta value(s) from. 544 546 * @param int $target_post_id Post ID to copy meta value(s) to. 545 547 * @param string $meta_key Meta key to copy. 546 *547 * @since 6.4.0548 548 */ 549 549 function _wp_copy_post_meta( $source_post_id, $target_post_id, $meta_key ) { … … 564 564 * 565 565 * @param string $post_type The post type being revisioned. 566 *567 566 * @return array An array of meta keys to be revisioned. 568 567 */ … … 588 587 * @since 6.4.0 589 588 * 590 * @param array $keysAn array of meta fields to be revisioned.589 * @param array $keys An array of meta fields to be revisioned. 591 590 * @param string $post_type The post type being revisioned. 592 591 */ … … 597 596 * Check whether revisioned post meta fields have changed. 598 597 * 598 * @since 6.4.0 599 * 599 600 * @param bool $post_has_changed Whether the post has changed. 600 601 * @param WP_Post $last_revision The last revision post object. 601 602 * @param WP_Post $post The post object. 602 * 603 * @since 6.4.0 603 * @return bool Whether the post has changed. 604 604 */ 605 605 function wp_check_revisioned_meta_fields_have_changed( $post_has_changed, WP_Post $last_revision, WP_Post $post ) {
Note: See TracChangeset
for help on using the changeset viewer.