PHP warning from programmatically creating posts
-
I get the PHP warning
Warning: count(): Parameter must be an array or an object that implements Countable in /path/to/wordpress/wp-includes/post-template.php on line 293
every time I programmatically create a post withwp_insert_post()
.If I go back into the post via the admin UI and update it, the warning goes away.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘PHP warning from programmatically creating posts’ is closed to new replies.