Making WordPress.org

Opened 11 years ago

Closed 11 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
Priority: normal Milestone:
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)

screencapture-at-thu-aug-13-11-43-37-cdt-2015.png (94.6 KB ) - added by morganestes 11 years ago.
Expand/Collapse links

Download all attachments as: .zip

Change History (3)

#1 @atimmer
11 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.

#2 @coffee2code
11 years ago

  • Owner set to coffee2code
  • Resolutionfixed
  • Status newclosed

In 1822:

developer.wordpress.org: Don't show expand/collapse source code links in admin.

Fixes #1179.
Props atimmer.

Note: See TracTickets for help on using tickets.