The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Last Updated Shortcode
a bug: undefined variable (2 posts)

  1. crysman
    Posted 3 years ago #


    there is a bug:

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

    It seems You are missing the global keyword in front of the variable, it should be like this:
    global $comment_tag;

    [ Signature moderated. ]


  2. crysman
    Posted 3 years ago #

    I have got a suggestion: Could you please make it HTML5 ready? That would mean the output of the shortcode would result in this:

    <time datetime="2009-10-22T13:59:47-04:00" pubdate="pubdate">
      October 22, 2009 1:59pm EDT

    The "pubdate" should be optional (not in default shortcode). The non-HTML5 compliant browsers would still render it normally, ignoring the unknown time tag.

    [ Signature moderated. ]

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Last Updated Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic