Closed Rarst closed 11 years ago
wpthumb_post_image() has this check at the very start:
wpthumb_post_image()
if ( ( ! strpos( (string) $args, '=' ) ) && ! ( is_array( $args ) && isset( $args[0] ) && $args[0] == $args[1] ) ) {
and if $args is array it errors, because PHP doesn't cast arrays to strings.
$args
PS could also use comment about what it actually checks, it is a little... non-obvious :)
wpthumb_post_image()
has this check at the very start:and if
$args
is array it errors, because PHP doesn't cast arrays to strings.PS could also use comment about what it actually checks, it is a little... non-obvious :)