Fix for PHP Strict Notices
-
Hi there,
If you set WordPress to debug mode, there are a couple of instances where you feed get_posts() to reset(), which triggers a notice as reset expects to receive a variable not a function (I know, stupid right?).
Anyway, it’s a quick fix with something like
$get_posts = get_posts(...); reset($get_posts);in both instances. Would be happy to fix myself – maybe consider putting the plugin on github?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Fix for PHP Strict Notices’ is closed to new replies.