Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18947, comment 22


Ignore:
Timestamp:
07/31/2015 07:39:38 PM (9 years ago)
Author:
johnnyb
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18947, comment 22

    initial v1  
    77We've already got `add_image_size()`, `has_image_size()`, and `remove_image_size()` as well as `get_intermediate_image_sizes()` (all in media.php). Adding `get_image_size( $sizename )` would have name parity with the first 3 functions mentioned above, and would let someone easily implement a `get_image_sizes()` function themselves. Alternately we could implement both.
    88
    9 THere's already decent-looking code for a `get_image_sizes()` function on the [Codex page for `get_intermediate_image_sizes()`](https://codex.wordpress.org/Function_Reference/get_intermediate_image_sizes).
     9There's already decent-looking code for a `get_image_sizes()` function on the [Codex page for `get_intermediate_image_sizes()`](https://codex.wordpress.org/Function_Reference/get_intermediate_image_sizes).