Opened 9 years ago
Closed 9 years ago
#1179 closed defect (bug) (fixed)
Expand/Collapse full source code links don't work on comments list
Reported by: | morganestes | Owned by: | coffee2code |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Developer Hub | Keywords: | needs-patch |
Cc: |
Description
When viewing the comments list and previewing the submitted code, I get "Expand full source codeCollapse full source code" at the bottom of the code, above the moderation links. There are two separate links there smushed together, and neither one affect the code view at all, they just jump back to the top of the page.
Attachments (1)
Change History (3)
#1
@
9 years ago
This is probably because the syntax highlighter script doesn't get loaded in the admin. I think we have two options:
- Enqueue the syntax highlighter scripts ourselves on the comment moderation page(s).
- Add an
if ( ! is_admin ) {
clause around this code to prevent the collapsing from taking place in the admin.
Note: See
TracTickets for help on using
tickets.
Expand/Collapse links