From 322b6cc54fcdcd078fe8fefd6e66ebe67dc7de16 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Wed, 17 Jun 2015 11:39:19 +0000 Subject: [PATCH] Bail out of 4.3 term splitting routine when no shared terms are found. Props dd32. See #30261. git-svn-id: https://develop.svn.wordpress.org/trunk@32819 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/upgrade.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index 552a931eb3..d5b58206b0 100644 --- a/src/wp-admin/includes/upgrade.php +++ b/src/wp-admin/includes/upgrade.php @@ -1870,6 +1870,10 @@ function split_all_shared_terms() { HAVING term_tt_count > 1" ); + if ( empty( $shared_terms ) ) { + return; + } + // Rekey shared term array for faster lookups. $_shared_terms = array(); foreach ( $shared_terms as $shared_term ) {