• Resolved Malae

    (@malae)


    The plugin does what is needed, but breaks pages if debug is set to true.

    PHP Notice: Undefined variable: comment_tag in wp-content\plugins\last-updated-shortcode\last-updated-shortcode.php on line 59.

    A similar post with a solution was posted 4 years ago, but was never acknowledged by the plugin author and does not work now.

    • This topic was modified 8 years, 9 months ago by Malae.
Viewing 1 replies (of 1 total)
  • Thread Starter Malae

    (@malae)

    The suggestion to fix the above undefined variable notice was not clear to me, when I tried to apply it and it did not work. I then realised what was intended.

    For it work, you should insert the line global $comment_tag; in the empty line 58 (i.e. before present line 59 to stop the notice from appearing.

    Thank you to crysman (@crysman) 4 years, 1 month ago.

    • This reply was modified 8 years, 9 months ago by Malae.
Viewing 1 replies (of 1 total)

The topic ‘PHP Notice: Undefined variable’ is closed to new replies.