[wp-trac] [WordPress Trac] #22889: Reconsider no-JS ?replytocom= links
WordPress Trac
noreply at wordpress.org
Fri Mar 3 07:03:13 UTC 2023
#22889: Reconsider no-JS ?replytocom= links
------------------------------------+-----------------------------
Reporter: markjaquith | Owner: SergeyBiryukov
Type: enhancement | Status: accepted
Priority: normal | Milestone: Future Release
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+-----------------------------
Comment (by peterwilsoncc):
I think this is what is needed to proceed:
* Have WP enqueue the script if needed:
{{{#!php
<?php
if ( is_singular() && comments_open() && get_option('thread_comments') )
// Maybe check the count of comments too, can't reply if there are
none.
wp_enqueue_script( 'comment-reply' );
?>
}}}
* a11y review to ensure the comment reply script is fully accessible (I
don't think it makes any announcements as to the changed content, should
it?)
A quick look at google for `inurl:?replytocom=` wasn't showing a great
deal of results, several of those I did see were including the parameter
in the canonical meta tag, so it's possible the few results are from
server misconfiguration.
If the JS is accessible, I'm less not-keen on removing the progressive
enhancement now than I was six years ago. I'd still prefer WP not to
require sites enforce the use JavaScript on the front end though, as we
can't be sure that's suitable in each case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22889#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list