Index: formatting.php
===================================================================
--- formatting.php	(revision 52408)
+++ formatting.php	(working copy)
@@ -5000,6 +5000,10 @@
  * @return mixed The value with the callback applied to all non-arrays and non-objects inside it.
  */
 function map_deep( $value, $callback ) {
+	if ( is_object( $value ) && $value instanceof __PHP_Incomplete_Class ) {
+	 	 return $value;
+	 	}
+
 	if ( is_array( $value ) ) {
 		foreach ( $value as $index => $item ) {
 			$value[ $index ] = map_deep( $item, $callback );
