Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter petrha

    (@petrha)

    Thank you very much. I found only SVN repository if I know that you’re at github I make regular pull request.

    Thanks for fixing.

    Best regards,
    Petr Havlíček

    Thread Starter petrha

    (@petrha)

    I probably found wrong part of code at mpp-init.php

    
            $size_thumb = mpp_get_option('size_thumbnail', array(
                    'width'     => 200,
                    'height'    => 200,
                    'crop'      => 1,
            ) );
    
            // Register media sizes.
            mpp_register_media_size( array(
                    'name'   => 'thumbnail',
                    'label'  => _x( 'Thumbnail', 'Thumbnail size name', 'mediapress' ),
                    'height' => $size_thumb['height'],
                    'width'  => $size_thumb['width'],
                    'crop'   => isset( $size_thumb['crop'] ) ? $size_thumb['crop'] : 1,
                    'type'   => 'default',
            ) );
    

    So if $size_thumb[‘crop’] is 1 it will be set to $size_thumb[‘crop’] (it’s 1) and if it isn’t 1 it will be set to 1.

    That doesn’t make sense.

Viewing 2 replies - 1 through 2 (of 2 total)