WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] wp_get_attachment_image_src and Photon (3 posts)

  1. jonez
    Member
    Posted 1 year ago #

    Hello,

    I'm not sure if this is a feature or a bug, but I've discovered that

    wp_get_attachment_image_src($image->ID, 'large') will result in the photon CDN URL sized accordingly

    but...

    wp_get_attachment_image_src($image->ID, 'full') will result in the local attachment URL

    Is this as designed?

    Thanks!
    -Jeff

    http://wordpress.org/extend/plugins/jetpack/

  2. Erick Hitter
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for reporting this oversight. It will be fixed in the next Jetpack release.

    The relevant commit is r649241.

  3. jonez
    Member
    Posted 1 year ago #

    Glad I could contribute ever so slightly... I already switched my themes over to large. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic