{"id":5449951,"date":"2014-11-04T17:53:35","date_gmt":"2014-11-04T17:53:35","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/proposals-to-change-the-file-wp-comments-postphp\/"},"modified":"2016-08-22T04:07:10","modified_gmt":"2016-08-22T04:07:10","slug":"proposals-to-change-the-file-wp-comments-postphp","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/proposals-to-change-the-file-wp-comments-postphp\/","title":{"rendered":"Proposals to change the file wp-comments-post.php"},"content":{"rendered":"<p>Hi all. It would be cool if you added to wp-comments-post.php acitons before wp_die(). For example:<br \/>\nbefore<br \/>\n<code>wp_die( __(&#039;Sorry, you must be logged in to post a comment.&#039;) );<\/code><br \/>\nadd<br \/>\n<code>do_action(&#039;login_comment_error&#039;)<\/code><\/p>\n<p>This will greatly help in creating AJAX processing comments and other.<\/p>\n","protected":false},"template":"","class_list":["post-5449951","topic","type-topic","status-closed","hentry","topic-tag-comments"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5449951","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5449951\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5449951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}