diff --git a/src/wp-admin/includes/class-wp-upgrader.php b/src/wp-admin/includes/class-wp-upgrader.php
index c2b778f1ea..32ab2c1e50 100644
--- a/src/wp-admin/includes/class-wp-upgrader.php
+++ b/src/wp-admin/includes/class-wp-upgrader.php
@@ -2030,20 +2030,16 @@ class WP_Automatic_Updater {
 
 			if ( ! empty( $this->update_results['core'] ) )
 				$this->after_core_update( $this->update_results['core'][0] );
-		}
 
-		/**
-		 * Action triggered after any automatic updates have run.
-		 *
-		 * This action is triggered after all automatic updates have run,
-		 * but doesn't guarantee that any updates were performed, you should
-		 * check the $update_results array to determine if any updates ran.
-		 *
-		 * @since 3.8.0
-		 *
-		 * @param array $update_results The results of all updates attempted
-		 */
-		do_action( 'automatic_updates_complete', $this->update_results );
+			/**
+		 	 * Action triggered after all automatic updates have run.
+		 	 *
+		 	 * @since 3.8.0
+		 	 *
+		 	 * @param array $update_results The results of all updates attempted
+		 	 */
+			do_action( 'automatic_updates_complete', $this->update_results );
+		}
 
 		// Clear the lock
 		delete_option( $lock_name );