[wp-trac] [WordPress Trac] #46280: Uncaught javascript error on comment-reply.js
WordPress Trac
noreply at wordpress.org
Wed Feb 20 01:12:27 UTC 2019
#46280: Uncaught javascript error on comment-reply.js
---------------------------------------------------+---------------------
Reporter: xknown | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.1
Component: Comments | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch needs-refresh needs-testing | Focuses:
---------------------------------------------------+---------------------
Comment (by pento):
I've had a look through the theme directory for themes that might have
this problem.
To find all themes that use an XHTML doctype:
`ag 'http://www.w3.org/TR/xhtml1' -l --php | awk '{split($0, flds,
"/");print flds[1];}' | uniq > xhtml-themes.txt`
To find all themes that print the `comment-reply` script in a custom
location (assuming they print it in the head):
`cat xhtml-themes.txt | xargs ag --php "wp_print_scripts\(\s*['\"]comment-
reply['\"]"`
To find all themes that put `comment-reply` in an array, which could be
passed to `wp_print_scripts()`, `wp_register_script()`, or
`wp_enqueue_script()`:
`cat xhtml-themes.txt | xargs ag --php "array\(([^)]|\n)*['\"]comment-
reply['\"]"`
After manually checking for false positives, this is the list of themes
I've found:
{{{
bizway: 2000+ installs
blackbird: 2000+ installs
p2: 1000+ installs
p3: 70+ installs
p2-categories: 20+ installs
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46280#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list