WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
[resolved] get_intermediate_image_sizes (4 posts)

  1. Marco
    Member
    Posted 4 years ago #

    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...

    http://wordpress.org/extend/plugins/json-api/

  2. dphiffer
    Member
    Plugin Author

    Posted 4 years ago #

    Hi mimecine,

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

    Best,
    -Dan

  3. dphiffer
    Member
    Plugin Author

    Posted 4 years ago #

    Update: 1.0 released. Your fix is included.

  4. Marco
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags