Commit 57da3e7813 for wordpress.org

commit 57da3e781320dd62e3016624b310c23447d9e6d1
Author: Sergey Biryukov <sergeybiryukov.ru@gmail.com>
Date:   Thu Apr 8 11:12:08 2021 +0000

    Coding Standards: Remove unnecessary `unset()` calls in `WP_Importer` methods.

    Variables created within the scope of a function are discarded automatically when PHP leaves the scope of the function, i.e. on `return`, so doing a call to `unset()` straight before a `return` statement is redundant.

    Props jrf, ravipatel, rachelbaker, mukesh27.
    Fixes #52996.
    Built from https://develop.svn.wordpress.org/trunk@50692


    git-svn-id: http://core.svn.wordpress.org/trunk@50301 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-admin/includes/class-wp-importer.php b/wp-admin/includes/class-wp-importer.php
index a39fc60cd1..aaed2e9d81 100644
--- a/wp-admin/includes/class-wp-importer.php
+++ b/wp-admin/includes/class-wp-importer.php
@@ -42,9 +42,6 @@ class WP_Importer {
 			}
 		} while ( count( $results ) == $limit );

-		// Unset to save memory.
-		unset( $results, $r );
-
 		return $hashtable;
 	}

@@ -72,9 +69,6 @@ class WP_Importer {
 			$count = (int) $result[0]->cnt;
 		}

-		// Unset to save memory.
-		unset( $results );
-
 		return $count;
 	}

@@ -117,9 +111,6 @@ class WP_Importer {
 			}
 		} while ( count( $results ) == $limit );

-		// Unset to save memory.
-		unset( $results, $r );
-
 		return $hashtable;
 	}

diff --git a/wp-includes/version.php b/wp-includes/version.php
index 6e41359a13..801232fa51 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -13,7 +13,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '5.8-alpha-50689';
+$wp_version = '5.8-alpha-50692';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.