[wp-trac] [WordPress Trac] #38925: Allow override of depth limits on comment reply link
WordPress Trac
noreply at wordpress.org
Thu Nov 24 06:41:09 UTC 2016
#38925: Allow override of depth limits on comment reply link
-------------------------+-----------------------------
Reporter: TravisR | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
The core code currently hides the Reply link if a comment is at the
maxDepth setting for comment nesting, but this appears to only be a
constraint on the presentation. The API still allows replies through URL
parameters and the REST interface, which demonstrates that there is not a
functional reason for the constraint.
I'm proposing that plugin authors are allowed to override this constraint
by setting `$args['limit_by_depth'] = false` in a
`comment_reply_link_args` filter. This requires only a minor,
inconsequential change to comment-template.php per the attached patch.
Note the '[https://wordpress.org/plugins/infinite-comment-
replies/developers/ Infinite Comment Replies]' plugin currently achieves
this by completely rewriting the reply link and thus masking everything
that is handled in the core production of the link. The proposal above is
a better option to achieve the same effect.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38925>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list