-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 98: Comment reply to entries #103
base: master
Are you sure you want to change the base?
Conversation
Comments have liveblog comment persisted with some hackery as otherwise WordPress sets the comment_parent to 0 since it is not a recognized status. Still needing to render the comments under the liveblog comment parents.
Store element ID base in constant and export to JS
@mjangda reply comments are now rendered in the template. Screenshots are from Chrome which supports the |
Ideally, the former.
Yep, the focus should continue to be on the liveblog entries but let users interact with comments as they like.
Sure, if that's easy enough to do, but not necessary. |
@mjangda thanks for the feedback. Regarding streaming of comments, I believe actually this increases the scope of the issue. So for now comments will only be updated when the page reloads (or, incidentally, if a liveblog gets edited). And the user comment replies will be collapsed by default, as I noted above with screenshots. If the user has a permalink to a liveblog comment in a collapsed container (e.g. if they submitted a new comment), the container will automatically expand upon page load. And lastly, supporting threaded/nested liveblog reply comments is possible, but I believe it also out of scope of this issue. Ready for review. |
Yep, makes sense re: scope. |
* @see self::fixup_comment_parent() | ||
* @filter preprocess_comment | ||
*/ | ||
public static function save_original_comment_parent_for_fixup( $commentdata ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mjangda I've submitted a core patch to add a wp_insert_comment_data
filter: http://core.trac.wordpress.org/ticket/23931#comment:2
This is super cool! I've tested this in Chrome and thought I'd give some feedback:
Hopefully my observations help. Looking forward to this becoming available by the way - it adds a whole new level of interactivity to liveblogs! |
Some more feedback on this after testing in IE:
|
…dle-size to master * commit '8b3d09bb1493d870d2a8bc0d9b31dbf4ab954e63': webpack remove vendor file from build remove vendor file Cleanup rxjs import dynamic webpack chunk loading code splitting editorcontainer, react-loadable, es2015 [WIP] Cleanup build
Fixes #98