• Hi,

    Whenever I upgrade the Getty Images plugin on our site, I get an uncaught error on some of our web pages, due to a very small issue in your plugin:

    Uncaught Error: Too few arguments to function Getty_Images::align_embed(), 3 passed in /…/wp-includes/class-wp-hook.php on line 287 and exactly 4 expected in /…/wp-content/plugins/getty-images/getty-images.php on line 144

    I always fix it easily, by simply editing line 144 and changing this:

    function align_embed( $html, $url, $attr, $post_ID )

    to this:

    function align_embed( $html, $url, $attr, $post_ID = 0 )

    It would be nice (and better standard) if you could fix this in the next version, so it won’t require a manual fix after every upgrade.

    Many thanks,

    Bira

  • The topic ‘please add = 0 to line 144 in getty-images.php’ is closed to new replies.