Support » Plugin: Custom Image Sizes » Warning: trim() expects parameter 1 to be string,

  • Hey,
    why don’t you update this plugin, it’s really usefull.
    If u can, i get this warning in the backend.
    But it’s still working with the last wordpress release!
    Thanks!

    Warning: trim() expects parameter 1 to be string, array given in /Volumes/MAIN/www/domain/wp-content/plugins/custom-image-sizes/filosofo-custom-image-sizes.php on line 47

    http://wordpress.org/extend/plugins/custom-image-sizes/

Viewing 1 replies (of 1 total)
  • ewwink

    (@ewwink)

    replace

    $attachment_id = (int) $attachment_id;
    $size_name = trim($size_name);

    with

    $attachment_id = (int) $attachment_id;
    if(!is_string($size_name)) $size_name= 'thumbnail';
    $size_name = trim($size_name);

Viewing 1 replies (of 1 total)
  • The topic ‘Warning: trim() expects parameter 1 to be string,’ is closed to new replies.