Opened 5 years ago
Closed 5 years ago
#4835 closed enhancement (fixed)
Support Forums: Condense code blocks by default
Reported by: | Clorith | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Support Forums | Keywords: | has-patch |
Cc: |
Description
Code blocks are set to a fixed size, leading to a need to scroll to see the full content, this helps keep pages short so you don't get overwhelmed, but when actually looking through code or debug data, it can be a hindrance.
The DevHub already has this solved by allowing you to expand/collapse the code, on.only showing a few lines by default.
Attachments (1)
Change History (12)
This ticket was mentioned in Slack in #meta by valentinbora. View the logs.
5 years ago
This ticket was mentioned in Slack in #forums by clorith. View the logs.
5 years ago
#7
@
5 years ago
Apologies @valentinbora for missing the props on that commit, thanks for the starting point, I'm going to test with that and hopefully not make too many changes.
#11
@
5 years ago
- Resolution set to fixed
- Status changed from reviewing to closed
Plugin is active on all Support forums, english and locales.
To activate it on all rosetta sites, I just used wp-cli, but as it doesn't support listing sites by path I used a SQL to generate all the CLI commands needed:
SELECT concat( 'bin/wp plugin activate wporg-bbp-code-blocks-expand-contract/wporg-bbp-code-blocks-expand-contract.php --url=https://', domain, path ) FROM wp_blogs WHERE site_id = 6 AND path = '/support/'
This seems to have been done in #959 via [1429]