• Binternet

    (@binternet)


    on
    includes/shortcodes.php on add_shortcode function I’ve encountered ‘illegal offset type’ notice since for some reason $tag was an array and not a string.

    You need to add this after is_callable

    
    if ( is_array( $tag ) ) {
     $tag = $tag[0];
    }
    
    • This topic was modified 8 years ago by Binternet.
  • The topic ‘Bugfix: illegal offset type’ is closed to new replies.