[Plugin: Jetpack by WordPress.com] Jetpack Invalid Argument Supplied for foreach()
-
Hi! My WordPress site is set up for registered users. Contributors can submit posts, but when they submit their post, they are met with the following error referencing the Jetpack plugin:
Warning: Invalid argument supplied for foreach() in /home/craftcore/craftcore.ca/wp-content/plugins/jetpack/jetpack.php on line 1243
The code around that line is:
function admin_menu_order() { return true; } function jetpack_menu_order( $menu_order ) { $jp_menu_order = array(); foreach ( $menu_order as $index => $item ) { if ( $item != 'jetpack' ) $jp_menu_order[] = $item; if ( $index == 0 ) $jp_menu_order[] = 'jetpack'; } return $jp_menu_order; }
Although the error comes up when contributors post a new blog, the post does submit properly.
Does anyone hae any advice?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Jetpack by WordPress.com] Jetpack Invalid Argument Supplied for foreach()’ is closed to new replies.