Index: load.php
--- load.php BASE
+++ load.php LOCAL
@@ -1173,6 +1173,24 @@
 }
 
 /**
+ * Determines whether the current request is a WordPress autosave request.
+ *
+ * @since 
+ *
+ * @return bool True if it's a WordPress autosave request, false otherwise.
+ */
+function wp_doing_autosave() {
+	/**
+	 * Filters whether the current request is a WordPress autosave request.
+	 *
+	 * @since 
+	 *
+	 * @param bool wp_doing_autosave Whether the current request is a WordPress autosave request.
+	 */
+	return apply_filters( 'wp_doing_autosave', defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE );
+}
+
+/**
  * Check whether variable is a WordPress Error.
  *
  * Returns true if $thing is an object of the WP_Error class.
