Support » Plugin: JSON API » [Plugin: JSON API] get_intermediate_image_sizes

  • Resolved Marco


    A feature enhancement: use get_intermediate_image_sizes() in wp 3
    line 39 in models/attachment.php has
    $images = array(‘thumbnail’,…)

    could be better if it was:

    $sizes = function_exists('get_intermediate_image_sizes') ? get_intermediate_image_sizes() : array('thumbnail',...);

    I amended my copy, but it would be bad if an upgrade wrote it over…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dphiffer


    Hi mimecine,

    Thanks for the contribution! This should be in version 1.0, which is nearing release.


    Plugin Author dphiffer


    Update: 1.0 released. Your fix is included.

    Just updated and it works like a charm! Great also to find I can get json out of custom posts in the new release!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: JSON API] get_intermediate_image_sizes’ is closed to new replies.