WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. crysman
    Member
    Posted 1 year ago #

    Hi,

    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. ]

    http://wordpress.org/extend/plugins/last-updated-shortcode/

  2. crysman
    Member
    Posted 1 year 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
    </time>

    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

About this Topic