SimplePie_Misc::atom_10_construct_type

Advertisement

Syntax Syntax

SimplePie_Misc::atom_10_construct_type( $attribs )

Source Source

File: wp-includes/SimplePie/Misc.php

			switch (strtolower(trim($attribs['']['type'])))
			{
				case 'text':
				case 'text/plain':
					return SIMPLEPIE_CONSTRUCT_TEXT | $mode;

				case 'html':
				case 'text/html':
					return SIMPLEPIE_CONSTRUCT_HTML | $mode;

				case 'xhtml':
				case 'application/xhtml+xml':
					return SIMPLEPIE_CONSTRUCT_XHTML | $mode;

				default:
					return SIMPLEPIE_CONSTRUCT_NONE | $mode;
			}
		}

		return SIMPLEPIE_CONSTRUCT_TEXT | $mode;
	}

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.