Support » Plugin: Get the Image » Images disappeared after upgrading to version 1.0.0

  • Plugin Author Justin Tadlock


    WordPress God

    This is a general notice to everyone experiencing this problem. I’ve seen several cases of it. In all cases, it was because a theme author was using a feature that was deprecated 4 years ago in this plugin, which was way back when version 0.5.0 was released.

    Because I felt that sufficient time had passed for theme authors to upgrade their code, this deprecated feature was removed in version 1.0.0. Frankly, 4 years is a long time to hold onto legacy code. There’s only so much bloat I’m willing to keep around.

    How to fix

    Each theme is going to be different, so I can’t tell everyone the exact changes they’ll need to make within their theme. It’d be better to point your theme author here.

    The problem arises when using the array value for the format argument, which would be something like:

    $image = get_the_image(
    		'format' => 'array'

    That’s fine. The problem is when the theme tries to use $image['url']. That code should be $image['src']. It should be a simple fix for theme authors to make.

    Avoiding problems like this in the future

    If you’re a theme author, please keep track of changes to the plugin as they’re made. Version 1.0.0 has been in development for several months and live on its GitHub repository.

    You can keep track of the plugin’s development here:

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Images disappeared after upgrading to version 1.0.0’ is closed to new replies.