diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
index 67544bc..eef3bd1 100644
--- a/src/wp-includes/functions.php
+++ b/src/wp-includes/functions.php
@@ -3603,7 +3603,7 @@ function wp_filesize( $path ) {
  * @return string[] Array of mime types keyed by the file extension regex corresponding
  *                  to those types.
  */
-function get_allowed_mime_types( $user = null ) {
+function get_allowed_mime_types( $user = null, $ignore_user = false ) {
 	$t = wp_get_mime_types();
 
 	unset( $t['swf'], $t['exe'] );
@@ -3616,14 +3616,14 @@ function get_allowed_mime_types( $user = null ) {
 	}
 
 	/**
-	 * Filters the list of allowed mime types and file extensions.
-	 *
-	 * @since 2.0.0
-	 *
-	 * @param array            $t    Mime types keyed by the file extension regex corresponding to those types.
-	 * @param int|WP_User|null $user User ID, User object or null if not provided (indicates current user).
+	* @param array            $t           Mime types keyed by the file extension regex corresponding to
+	*                                      those types. 'swf' and 'exe' removed from full list. 'htm|html' also
+	*                                      removed depending on '$user' capabilities.
+	* @param int|WP_User|null $user        User ID, User object or null if not provided (indicates current user).
+	*
+	* @param bool             $ignore_user An override flag to return all possible mime types regardless of user.
 	 */
-	return apply_filters( 'upload_mimes', $t, $user );
+	return apply_filters( 'upload_mimes', $t, $user, $ignore_user );
 }
 
 /**
diff --git a/tests/phpunit/tests/functions.php b/tests/phpunit/tests/functions.php
index 9d3260a..1a539d6 100644
--- a/tests/phpunit/tests/functions.php
+++ b/tests/phpunit/tests/functions.php
@@ -2218,4 +2218,24 @@ class Tests_Functions extends WP_UnitTestCase {
 		);
 		$this->assertSameSetsWithIndex( $theme_json, $expected_theme_json );
 	}
+
+	/**
+	* @ticket 32544
+	*/
+	function test_get_allowed_mime_types_all() {
+		add_filter( 'upload_mimes', array( $this, 'add_mime_type_for_all_mime_test' ), 10, 3 );
+		$all_mimes = get_allowed_mime_types( null, true );
+		$this->assertArrayHasKey( 'test', $all_mimes );
+		
+		$mimes = get_allowed_mime_types();
+		$this->assertArrayNotHasKey( 'test', $mimes );
+	}
+
+	public function add_mime_type_for_all_mime_test( $mimes, $user_id, $ignore_user ) {
+		$mime_types = array( 'test' => 'text/test' );
+		if ( $ignore_user ) {
+			$mimes = array_merge( $mime_types, $mimes );
+		}
+		return $mimes;
+	}
 }
