Notice: Undefined variable: snippet
-
Version: 3.0.11
Notice: Undefined variable: snippet in …/plugins/post-snippets/post-snippets.php on line 216
In
function getSnippet( $name, $variables = '' ), if you try to get the value of a snippet that doesn’t exist, $snippet never gets set soreturn do_shortcode( $snippet );throws a Notice.Related: it would be nice if caller could provide getSnippet with a default value to return if snippet not found.
The topic ‘Notice: Undefined variable: snippet’ is closed to new replies.