[wp-trac] [WordPress Trac] #63160: Twenty Eleven: improve documentation for twentyeleven_attachment_size filter

WordPress Trac noreply at wordpress.org
Tue Mar 25 04:24:09 UTC 2025


#63160: Twenty Eleven: improve documentation for twentyeleven_attachment_size
filter
---------------------------+--------------------
 Reporter:  sabernhardt    |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  6.9
Component:  Bundled Theme  |    Version:  3.7
 Severity:  normal         |   Keywords:
  Focuses:  docs           |
---------------------------+--------------------
 Since [https://core.trac.wordpress.org/changeset/25625/trunk/src/wp-
 content/themes/twentyeleven/image.php changeset 25625], the
 `twentyeleven_attachment_size` docblock has described its parameter as
 "height and width attachment size dimensions," but the filter only adjusts
 the image width.

 An inline comment clarifies that the image height has a 1024px limit, and
 I think that information could fit within the filter's docblock.

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


More information about the wp-trac mailing list