{"id":12485,"date":"2010-11-07T14:07:07","date_gmt":"2010-11-07T20:07:07","guid":{"rendered":"http:\/\/rankexploits.com\/musings\/?p=12485"},"modified":"2010-11-08T07:17:58","modified_gmt":"2010-11-08T13:17:58","slug":"comment-editing-should-be-back","status":"publish","type":"post","link":"https:\/\/rankexploits.com\/musings\/2010\/comment-editing-should-be-back\/","title":{"rendered":"Comment Editing Should Be Back"},"content":{"rendered":"<p>Comment editing <i>should<\/I> be back.  Immediately after you enter a comment, you both an &#8220;edit&#8221; and &#8220;delete&#8221; button should appear after the time stamp for your comment. The &#8220;edit&#8221; feature has a 10 minute grace period. The &#8220;delete&#8221; feature has a 1 minute grace period.  Also, even if the grace period has not lapsed, these buttons will also only appear fewer than 3 comments have been entered after yours. (This is to reduce the possibility that people get into rapid fire arguments and want to &#8220;edit&#8221; what they said 9 minutes ago, but which someone already responded to.)<\/p>\n<p>If you cannot see the &#8220;edit&#8221; or &#8220;delete&#8221; buttons, or if they do not work, let me know.  Note: There can be weirdness if the time runs out after you load the window but before you click the edit or delete buttons. So, if you want to delete, you need to do it quickly.  <\/p>\n<p>Just so <i>I<\/i> remember: I had to edit line 144 in <a href=\"http:\/\/julienappert.com\/realisations\/plugin-editable-comments\">Plugin Editable Comments<\/a> to correct the bug in the time period. The orginal plugin uses  $comment->comment_date.  That sort of worked provided I added 6 hours to grace period for the &#8220;edit&#8221; and &#8220;delete&#8221; buttons.  That&#8217;s rather pesky, and I suspect people in other time zones will be adding a different number of hours.  I changed this to $comment->comment_date_gmt and now the edit and delete buttons seem to appear for the appropriate amount of time. <\/p>\n<p>Anyway&#8230; play with edit and delete. Also, let me know if you think the buttons need slightly longer or shorter amounts of time. Maybe 5 minutes is enough for editing and 30 seconds enough for deleting?  What do you think? <\/p>\n<p><b>Update<\/b>: Where the &#8220;edit&#8221; and &#8220;delete&#8221; buttons appear:<br \/>\n<a href=\"http:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2010\/11\/Edit_Delete.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2010\/11\/Edit_Delete-500x147.jpg\" alt=\"\" title=\"Edit_Delete\" width=\"500\" height=\"147\" class=\"aligncenter size-medium wp-image-12489\" srcset=\"https:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2010\/11\/Edit_Delete-500x147.jpg 500w, https:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2010\/11\/Edit_Delete-300x88.jpg 300w, https:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2010\/11\/Edit_Delete.jpg 609w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><br \/>\nUnless you use Firefox with the plugin to highlight &#8220;nofollow&#8221; links, mostly ignore the pick.  You screen won&#8217;t show pink. But it&#8217;s useful for me to explain what you are seeing.<\/p>\n<p>In the image above, you see a comment I entered. It shows my name in pink. This is followed by the comment number, a date and the &#8220;Edit This&#8221; button.  I, Lucia, see <i>this<\/i> button; I don&#8217;t know if Zeke sees it. Others&#8217; should not see it.  Next, in pink, you should see &#8220;Edit&#8221; and &#8220;Delete&#8221;.  You should see these two buttons <i>if<\/I> <\/p>\n<ul>\n<li>You entered the comment.<\/li>\n<li>For the delete button: less than 1 minute had passed when you loaded this fresh page.<\/li>\n<li>For the edit button: less than 10 minutes had passed when you loaded this fresh page.<\/li>\n<li>Yours comment was between 3rd to last and last when you loaded this fresh page.<\/li>\n<\/ul>\n<p>During the grace period, you can click these buttons and edit or delete.    If you click edit, an edit window should open. It looks like this:<br \/>\n<a href=\"http:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2010\/11\/EditScreen.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2010\/11\/EditScreen-500x284.jpg\" alt=\"\" title=\"EditScreen\" width=\"500\" height=\"284\" class=\"aligncenter size-medium wp-image-12492\" srcset=\"https:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2010\/11\/EditScreen-500x284.jpg 500w, https:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2010\/11\/EditScreen-300x170.jpg 300w, https:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2010\/11\/EditScreen.jpg 756w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><br \/>\nNote: The edit window uses javascript. So, it may not work if you have javascript turned off. <\/p>\n<p>You can edit your comment, click update, and your new comment will look like this:<br \/>\n<a href=\"http:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2010\/11\/ChangeSTuff.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2010\/11\/ChangeSTuff-500x121.jpg\" alt=\"\" title=\"ChangeSTuff\" width=\"500\" height=\"121\" class=\"aligncenter size-medium wp-image-12493\" srcset=\"https:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2010\/11\/ChangeSTuff-500x121.jpg 500w, https:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2010\/11\/ChangeSTuff-300x73.jpg 300w, https:\/\/rankexploits.com\/musings\/wp-content\/uploads\/2010\/11\/ChangeSTuff.jpg 726w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>The &#8220;Delete&#8221; button will still appear <i>if<\/i> less than 1 minute has elapsed since you entered your comment. Otherwise, it will have vanished.<\/p>\n<p> If you leave the screen and the page is still there, the buttons don&#8217;t automagically vanish, but they will not function. So, if you click &#8220;edit&#8221; after the 10 minute time period is done, the edit screen will say &#8220;fail&#8221;.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Comment editing should be back. Immediately after you enter a comment, you both an &#8220;edit&#8221; and &#8220;delete&#8221; button should appear after the time stamp for your comment. The &#8220;edit&#8221; feature has a 10 minute grace period. The &#8220;delete&#8221; feature has a 1 minute grace period. Also, even if the grace period has not lapsed, these &hellip; <a href=\"https:\/\/rankexploits.com\/musings\/2010\/comment-editing-should-be-back\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Comment Editing Should Be Back<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[344],"class_list":["post-12485","post","type-post","status-publish","format-standard","hentry","category-wordpress-plugins","tag-plugins"],"_links":{"self":[{"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/posts\/12485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/comments?post=12485"}],"version-history":[{"count":0,"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/posts\/12485\/revisions"}],"wp:attachment":[{"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/media?parent=12485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/categories?post=12485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/tags?post=12485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}