In my edit history plugin, I want to add a link to view the revisions of a post. I want to link the entire "post time" string, e.g. "3 months ago".
However I can't see a good was to do that. Currently I am overriding the post_meta function in the layer. I can wrap $post['when_2']['data'] in a link no problem, which links only the "3 months" text.
I tried putting the opening link tag in the 'prefix' and closing link tag in the 'suffix' parts, but this breaks the HTML:
<SPAN CLASS="qa-a-item-when-pad"><a rel="nofollow" href="../revisions/222" class="qa-a-item-revised"></SPAN>
<SPAN CLASS="qa-a-item-when-data"><SPAN CLASS="updated"><SPAN CLASS="value-title" TITLE="2012-11-01T16:34:58+0000"></SPAN>36 seconds</SPAN></SPAN>
<SPAN CLASS="qa-a-item-when-pad"> ago</a></SPAN>
Is there a way to wrap the entire code above with a link?