Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 73026

Bugfix: illegal offset type

$
0
0

Replies: 0

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 2 minutes ago by  Binternet.

Viewing all articles
Browse latest Browse all 73026

Trending Articles