extract() in get_kudos() is given null, causing errors
-
In the plugin, when running
kudos()
on the front end it then runsget_kudos()
with no variables given to the plugin.This causes
extract()
(line 70, functions.php) to give a warning as it’s expecting an array.The solution may be to remove
$attr
‘s default null and replace it with a blank array.Line 69, functions.php
function get_kudos( $post_id = null, $attr = null ){
Might be better changed to:
function get_kudos( $post_id = null, $attr = array() ){
- The topic ‘extract() in get_kudos() is given null, causing errors’ is closed to new replies.