[wp-trac] [WordPress Trac] #12799: Allow gallery shortcode to accept a maximum number of items

WordPress Trac noreply at wordpress.org
Sat Aug 2 04:17:51 UTC 2025


#12799: Allow gallery shortcode to accept a maximum number of items
-------------------------------------------------+-------------------------
 Reporter:  dtorbert                             |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Gallery                              |     Version:  2.9
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch changes-requested close    |     Focuses:
  good-first-bug                                 |
-------------------------------------------------+-------------------------
Changes (by sachinrajcp123):

 * Attachment "12799-media-enhancement.diff" added.

 Adds `limit` attribute support to the [gallery] shortcode.  This patch
 trims the image IDs if limit is set. Props @sachinrajcp123

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/12799>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list