[wp-trac] [WordPress Trac] #44394: Error when trying to get the columns of a three-columns gallery.
WordPress Trac
noreply at wordpress.org
Mon Jan 19 11:39:11 UTC 2026
#44394: Error when trying to get the columns of a three-columns gallery.
-------------------------------------------------+-------------------------
Reporter: virginthumb | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Gallery | Version: 4.9.6
Severity: normal | Resolution:
Keywords: has-patch changes-requested | Focuses:
reporter-feedback |
-------------------------------------------------+-------------------------
Changes (by ozgursar):
* keywords: needs-testing has-patch => has-patch changes-requested
reporter-feedback
Comment:
== Test Report
=== Description
This report validates whether the indicated patch works as expected.
Patch tested:
https://core.trac.wordpress.org/attachment/ticket/44394/patch.diff
=== Environment
- WordPress: 7.0-alpha-61215-src
- PHP: 8.2.29
- Server: nginx/1.29.4
- Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
- Browser: Chrome 143.0.0.0
- OS: macOS
- Theme: Twenty Twenty-One 2.7
- MU Plugins: None activated
- Plugins:
* Classic Editor 1.6.7
* Test Reports 1.2.1
=== Steps to Reproduce
1. Install and active classic editor
2. Add a new post
2. Create a gallery with 3 images and choose 3 columns
3. Add the following snippet to single.php
{{{
$gallery = get_post_gallery( $post->ID, False );
$gallery_images = explode( ',', $gallery['ids'] );
var_dump( $gallery['columns'] );
}}}
=== Actual Results
1. ❌ Issue did not resolve with patch.
=== Additional Notes
- When I test the use case code provided by the reporter, I get the same
error before and after applying the patch.
=== Supplemental Artifacts
Before applying patch:
[[Image(https://i.imgur.com/ZmBwdbD.png)]]
[[Image(https://i.imgur.com/RTpYWEQ.png)]]
[[Image(https://i.imgur.com/A6Xsktx.png)]]
After applying patch:
[[Image(https://i.imgur.com/AX1tkRA.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44394#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list