Quantcast
Viewing all articles
Browse latest Browse all 31603

ktkreitman on "functions.php and swf code"

Hey friends,

So I'm having some trouble. I wanted to add a .swf file to my website. I followed one forum and used this code:

function demo($mimes) {
if ( function_exists( 'current_user_can' ) )
$unfiltered = $user ? user_can( $user, 'unfiltered_html' ) : current_user_can( 'unfiltered_html' );
if ( !empty( $unfiltered ) ) {
$mimes['swf'] = 'application/x-shockwave-flash';
}
return $mimes;
}
add_filter('upload_mimes','demo');

And I tried to remove it from the functions.php file and now I get this error.

Parse error: syntax error, unexpected '}' in /home/ktkreitman/public_html/wp-content/themes/temptation/functions.php on line 12

I even re-added the functions.php file from the original and I still get the same error.

Any help?


Viewing all articles
Browse latest Browse all 31603

Trending Articles