• Resolved codespacing

    (@codespacing)


    Hi,

    Thanks for the great plugin. When installed, it returns the following error “Notice: Undefined offset: 2 in MY_SITE/wp-content/plugins/menu-image/menu-image.php on line 127”.

    I’ve checked that line and it just need a little fix. I’ve changed it from this …

    add_image_size( $name, $params[ 0 ], $params[ 1 ], $params[ 2 ] );

    … To this …

    add_image_size( $name, $params[ 0 ], $params[ 1 ], isset($params[ 2 ]) ? $params[ 2 ] : '' );

    Now it’s working fine ??

    It’ll be very nice from your side to add this fix in a future update.

    Thank you very much for your work and effort. Appreciated ??

    https://www.ads-software.com/plugins/menu-image/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug fix. Error in the file "menu-image.php"’ is closed to new replies.