<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>THE MOLITOR FORUMS &#187; Topic: Parse error in functions.php</title>
		<link>http://www.themolitor.com/forums/topic/parse-error-in-functionsphp</link>
		<description>THE MOLITOR FORUMS &#187; Topic: Parse error in functions.php</description>
		<language>en-US</language>
		<pubDate>Tue, 28 Apr 2026 09:34:24 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/parse-error-in-functionsphp" rel="self" type="application/rss+xml" />

		<item>
			<title>THE MOLITOR on "Parse error in functions.php"</title>
			<link>http://www.themolitor.com/forums/topic/parse-error-in-functionsphp#post-41008</link>
			<pubDate>Mon, 13 Feb 2017 09:16:03 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">41008@http://www.themolitor.com/forums/</guid>
			<description><p>If you see the following error message...</p>
<pre><code>Parse error: syntax error, unexpected T_FUNCTION in ...themes/vysualize/functions.php on line 5</code></pre>
<p>...This means you're hosting has strict server permission active. To address this, open functions.php and locate the following on lines 2-20...</p>
<pre><code>//////////////////////////////////////////
//ADJUST WP_oEMBED_GET FOR HTML VALIDATION
//////////////////////////////////////////
add_filter( &#039;oembed_dataparse&#039;,zfunction( $return, $data, $url ) {
    // Target only Vimeo:
    if( is_object( $data ) &#38;&#38;  property_exists( $data, &#039;provider_name&#039; ) &#38;&#38;  &#039;Vimeo&#039; === $data-&#62;provider_name &#124;&#124; &#039;YouTube&#039; === $data-&#62;provider_name ) {
        // Remove the unwanted attributes:
        $return = str_ireplace(
            array(
                &#039;frameborder=&#34;0&#34;&#039;,
                &#039;webkitallowfullscreen&#039;,
                &#039;mozallowfullscreen&#039;
            ),
            &#039;&#039;,
            $return
        );
    }
    return $return;
}, 10, 3 );</code></pre>
<p>...replace it with this...</p>
<pre><code>//////////////////////////////////////////
//ADJUST WP_oEMBED_GET FOR HTML VALIDATION
//////////////////////////////////////////
function embedfunc( $return, $data, $url ) {
    // Target only Vimeo:
    if( is_object( $data ) &#38;&#38;  property_exists( $data, &#039;provider_name&#039; ) &#38;&#38;  &#039;Vimeo&#039; === $data-&#62;provider_name &#124;&#124; &#039;YouTube&#039; === $data-&#62;provider_name ) {
        // Remove the unwanted attributes:
        $return = str_ireplace(
            array(
                &#039;frameborder=&#34;0&#34;&#039;,
                &#039;webkitallowfullscreen&#039;,
                &#039;mozallowfullscreen&#039;
            ),
            &#039;&#039;,
            $return
        );
    }
    return $return;
}
add_filter( &#039;oembed_dataparse&#039;, &#039;embedfunc&#039;, 10, 3 );</code></pre></description>
		</item>

	</channel>
</rss>
