WordPress.org

Ready to get started?Download WordPress

Forums

Lazy Load
Bug in lazyload_images_add_placeholders?? (2 posts)

  1. Kevin Smith
    Member
    Posted 2 years ago #

    I used the following function to include my own images:

    if ( function_exists( 'lazyload_images_add_placeholders' ) )
        $content = lazyload_images_add_placeholders( $content );

    After that line of code, $content was empty. My opinion is that the following function is wrong:

    function lazyload_images_add_placeholders( $content ) {
          LazyLoad_Images::add_image_placeholders( $content );
    }

    I changed it the following way and now it works perfectly:

    function lazyload_images_add_placeholders( $content ) {
          return LazyLoad_Images::add_image_placeholders( $content );
    }

    http://wordpress.org/extend/plugins/lazy-load/

  2. Mohammad Jangda
    Member
    Plugin Author

    Posted 2 years ago #

    Nice catch; fixed in r576386

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.