Hi @richtwebguy,
If the snippet is not found then this function returns an empty value (NULL). based on this the developer can add any condition to the code. So we think this function is perfectly set from the developer’s point of view.
Thanks
$result = PostSnippets::getSnippet('NoSuchSnippet');
Warning: Undefined variable $snippet in .../wp-ctnt975/plugins/post-snippets/post-snippets.php on line 208
this doesn’t happen if
$snippet = null;
is added to the top of PostSnippets::getSnippet
Hi @richtwebguy,
Thanks for pointing out the issue, We will add this improvement in our upcoming update.
Thanks
Did the development forget about this?
Annoying that the problem comes back on every plugin update.
Thanks.
Hi @richtwebguy,
The update with this patch hasn’t been released yet, we are doing some major improvements to the plugin code and adding some extra functionalities. We will let you know when the update gets released.
Thank you