[wp-trac] [WordPress Trac] #45493: Square brackets in caption shortcode produce improper formatting
WordPress Trac
noreply at wordpress.org
Wed Jun 4 19:04:39 UTC 2025
#45493: Square brackets in caption shortcode produce improper formatting
-------------------------------------------------+-------------------------
Reporter: Christian1012 | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future
| Release
Component: Editor | Version: 4.9.8
Severity: normal | Resolution:
Keywords: has-patch has-test-info dev- | Focuses: javascript
feedback |
-------------------------------------------------+-------------------------
Changes (by SirLouen):
* keywords: has-patch needs-testing => has-patch has-test-info dev-
feedback
Comment:
== Test Report
=== Description
This report validates whether the indicated patch works as expected.
Patch tested:
https://core.trac.wordpress.org/attachment/ticket/45493/45493.3.diff
=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 137.0.0.0
- OS: Windows 10/11
- Theme: Twenty Fourteen 4.2
- MU Plugins: None activated
- Plugins:
* Classic Editor 1.6.7
* Test Reports 1.2.0
=== Steps to Reproduce
1. Follow Instructions in OP post. Using Classic Editor (TinyMCE) for
reproduction
2. Add the text in the Code tab
3. Switch into Visual
4. Switch back into Code tab
5. 🐞 The endline after `[/caption]` disappears
=== Expected Results
- Text introduced in code should remain unaltered
=== Actual Results
1. ✅ Issue resolved with patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45493#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list