Viewing 1 replies (of 1 total)
  • Amen to this!

    how about a couple of ternery operators to trap for all these unset vars, instead of undefined values ending up in the templated text in $mediahtml ? For example:

    $poster_attribute = ($poster) ? 'poster="'.htmlspecialchars($poster).'"' : '';
    
    $preload_attribute = ($preload)  ? 'preload="'.$preload.'"' : '';
    
    $autoplay_attribute = ($autoplay)  ? 'autoplay="'.$autoplay.'"' : '';
    
    		$loop_option =  ($loop)  ? ', loop: ' . $loop : '';

    Also, unsure why line 437, the plugin uses $mediahtml.= , which warns that it has never been previously defined. would $mediahtml= suffice?

    a little bit of WP_DEBUG goes a long way; using PHP 5.4.

Viewing 1 replies (of 1 total)
  • The topic ‘Lots of PHP Notices in debug mode’ is closed to new replies.