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

WordPress Trac noreply at wordpress.org
Tue Jul 12 15:30:34 UTC 2022


#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 needs-refresh changes-     |     Focuses:
  requested close good-first-bug                 |
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * keywords:  dev-feedback has-patch => has-patch needs-refresh changes-
     requested close good-first-bug
 * milestone:   => Future Release


Comment:

 With the introduction of the block editor and full site editing,
 shortcodes (though still supported) are no longer the recommended way to
 display a gallery.

 With that in mind, I'm going to add a `close` suggestion as a
 `maybelater`. I won't close this out right now because I think it's a fair
 attribute to introduce, even in block editor times. If someone is
 interested in taking the time to create a new patch, this can be looked
 at. If there's no new activity in a few months, I'll return and close it
 out.

 Because it has not received any attention in over 7 years,
 [attachment:"12799-4.diff"] certainly will need a refresh.

 Replying to [comment:19 helen]:
 > I'm not sure `count` is the right name for the attribute either, even if
 that's what it's called in the code.

 I also don't like `count` as the attribute name. `limit` feels like a more
 natural name to give this one.

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


More information about the wp-trac mailing list