• Resolved opicron

    (@opicron)


    1)
    When I use the following code:

    if ( function_exists( 'fly_add_image_size' ) ) {
        fly_add_image_size( 'banner', 2420, 0, false );
    }

    in functions.php and generate the file like this:

    fly_get_attachment_image_src( $imageid, 'banner', false );

    The file is not generated and the result is a blank array.

    2)

    When I generate the file like this:

    fly_get_attachment_image_src( $imageid, array(2420,0), false );

    The file is generated and there is an resulting array.

    Why do 1) and 2) have different results? This only happens with the 0 size.

    Would it not be better to have both methods result in the same behaviour?

    Just a heads up. Great plugin, I am always annoyed by the immense mess of the media folder ;).

    • This topic was modified 3 years, 2 months ago by opicron.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘different behaviours’ is closed to new replies.