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

WordPress Trac noreply at wordpress.org
Fri Oct 16 21:29:19 UTC 2015


#12799: Allow gallery shortcode to accept a maximum number of items
------------------------------------+------------------
 Reporter:  dtorbert                |       Owner:
     Type:  feature request         |      Status:  new
 Priority:  normal                  |   Milestone:  4.4
Component:  Gallery                 |     Version:  2.9
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+------------------

Comment (by antpb):

 Replying to [comment:13 michaelbeil]: Thanks! Good catch. I actually
 copied the line from a previous diff.

 I went ahead and fixed the spacing issue as well. Patch to follow...


 > This looks great @dtorbert!
 >
 > @antpb your most recent diff has a few spacing issues in the first
 phpdoc block (L1397) and then the array (L1448).
 >
 > Also, I noticed a typo on L1476:
 > // Necessary because in get_posts(), when specifying include="", the
 numberposts parameter is ignored (it's set to match the number if items in
 include="")`
 >
 > I believe you meant `number of items`.

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


More information about the wp-trac mailing list