Making WordPress.org

Opened 10 years ago

Closed 10 years ago

#1179 closed defect (bug) (fixed)

Expand/Collapse full source code links don't work on comments list

Reported by: morganestes's profile morganestes Owned by: coffee2code's profile 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)

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

Download all attachments as: .zip

Change History (3)

#1 @atimmer
10 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
10 years ago

  • Owner set to coffee2code
  • Resolution set to fixed
  • Status changed from new to closed

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.