src/wp-admin/includes/deprecated.php | 26 ++++++++++++++++++++++++++
src/wp-includes/comment.php | 26 --------------------------
2 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/src/wp-admin/includes/deprecated.php b/src/wp-admin/includes/deprecated.php
index 04f7208422..ae3b3996e7 100644
|
a
|
b
|
function image_attachment_fields_to_save( $post, $attachment ) { |
| 1588 | 1588 | |
| 1589 | 1589 | return $post; |
| 1590 | 1590 | } |
| | 1591 | |
| | 1592 | /** |
| | 1593 | * Queues comments for metadata lazy-loading. |
| | 1594 | * |
| | 1595 | * @since 4.5.0 |
| | 1596 | * @since 6.3.0 Use wp_lazyload_comment_meta() for lazy-loading of comment meta. |
| | 1597 | * @deprecated 6.3.0 Use wp_lazyload_comment_meta() instead. |
| | 1598 | * |
| | 1599 | * @see wp_lazyload_comment_meta() |
| | 1600 | * |
| | 1601 | * @param WP_Comment[] $comments Array of comment objects. |
| | 1602 | */ |
| | 1603 | function wp_queue_comments_for_comment_meta_lazyload( $comments ) { |
| | 1604 | _deprecated_function( __FUNCTION__, '6.3.0', 'wp_lazyload_comment_meta' ); |
| | 1605 | // Don't use `wp_list_pluck()` to avoid by-reference manipulation. |
| | 1606 | $comment_ids = array(); |
| | 1607 | if ( is_array( $comments ) ) { |
| | 1608 | foreach ( $comments as $comment ) { |
| | 1609 | if ( $comment instanceof WP_Comment ) { |
| | 1610 | $comment_ids[] = $comment->comment_ID; |
| | 1611 | } |
| | 1612 | } |
| | 1613 | } |
| | 1614 | |
| | 1615 | wp_lazyload_comment_meta( $comment_ids ); |
| | 1616 | } |
diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php
index 7d01f9f4a8..5d87da2890 100644
|
a
|
b
|
function update_comment_meta( $comment_id, $meta_key, $meta_value, $prev_value = |
| 525 | 525 | return update_metadata( 'comment', $comment_id, $meta_key, $meta_value, $prev_value ); |
| 526 | 526 | } |
| 527 | 527 | |
| 528 | | /** |
| 529 | | * Queues comments for metadata lazy-loading. |
| 530 | | * |
| 531 | | * @since 4.5.0 |
| 532 | | * @since 6.3.0 Use wp_lazyload_comment_meta() for lazy-loading of comment meta. |
| 533 | | * @deprecated 6.3.0 Use wp_lazyload_comment_meta() instead. |
| 534 | | * |
| 535 | | * @see wp_lazyload_comment_meta() |
| 536 | | * |
| 537 | | * @param WP_Comment[] $comments Array of comment objects. |
| 538 | | */ |
| 539 | | function wp_queue_comments_for_comment_meta_lazyload( $comments ) { |
| 540 | | _deprecated_function( __FUNCTION__, '6.3.0', 'wp_lazyload_comment_meta' ); |
| 541 | | // Don't use `wp_list_pluck()` to avoid by-reference manipulation. |
| 542 | | $comment_ids = array(); |
| 543 | | if ( is_array( $comments ) ) { |
| 544 | | foreach ( $comments as $comment ) { |
| 545 | | if ( $comment instanceof WP_Comment ) { |
| 546 | | $comment_ids[] = $comment->comment_ID; |
| 547 | | } |
| 548 | | } |
| 549 | | } |
| 550 | | |
| 551 | | wp_lazyload_comment_meta( $comment_ids ); |
| 552 | | } |
| 553 | | |
| 554 | 528 | /** |
| 555 | 529 | * Sets the cookies used to store an unauthenticated commentator's identity. Typically used |
| 556 | 530 | * to recall previous comments by this commentator that are still held in moderation. |