wp/wp-includes/SimplePie/Enclosure.php
changeset 19 3d72ae0968f4
parent 16 a86126ab1dd4
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
  1150 		}
  1150 		}
  1151 
  1151 
  1152 		// If we encounter an unsupported mime-type, check the file extension and guess intelligently.
  1152 		// If we encounter an unsupported mime-type, check the file extension and guess intelligently.
  1153 		if (!in_array($type, array_merge($types_flash, $types_fmedia, $types_quicktime, $types_wmedia, $types_mp3)))
  1153 		if (!in_array($type, array_merge($types_flash, $types_fmedia, $types_quicktime, $types_wmedia, $types_mp3)))
  1154 		{
  1154 		{
  1155 			switch (strtolower($this->get_extension()))
  1155 			$extension = $this->get_extension();
       
  1156 			if ($extension === null) {
       
  1157 				return null;
       
  1158 			}
       
  1159 
       
  1160 			switch (strtolower($extension))
  1156 			{
  1161 			{
  1157 				// Audio mime-types
  1162 				// Audio mime-types
  1158 				case 'aac':
  1163 				case 'aac':
  1159 				case 'adts':
  1164 				case 'adts':
  1160 					$type = 'audio/acc';
  1165 					$type = 'audio/acc';