From fc33d398cb841184f5ea7f332fc7420ba4c03919 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 25 Sep 2019 15:49:41 +0000 Subject: [PATCH] Pings/Trackbacks: Use correct variable in a `foreach()` loop in `do_all_pings()`. Props itowhid06. Fixes #48094. See #36824. git-svn-id: https://develop.svn.wordpress.org/trunk@46292 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index fe5065dd9f..d0b3a57d6a 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -2679,7 +2679,7 @@ function do_all_pings() { ) ); - foreach ( $enclosure as $enclosure ) { + foreach ( $enclosures as $enclosure ) { delete_post_meta( $enclosure, '_encloseme' ); do_enclose( null, $enclosure->ID ); }