From dd25ef25d9f58abccf5096b9db7d73c56d1ea6a0 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 22 May 2014 19:13:14 +0000 Subject: [PATCH] `$count` is set in `get_post_galleries()` and never used, relic from PFUI RIP. See #27882. Built from https://develop.svn.wordpress.org/trunk@28550 git-svn-id: http://core.svn.wordpress.org/trunk@28376 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 1 - 1 file changed, 1 deletion(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index 7ecae01cd1..f9b47e4c90 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -3030,7 +3030,6 @@ function get_post_galleries( $post, $html = true ) { foreach ( $matches as $shortcode ) { if ( 'gallery' === $shortcode[2] ) { $srcs = array(); - $count = 1; $gallery = do_shortcode_tag( $shortcode ); if ( $html ) {