Forum Replies Created

Viewing 1 replies (of 1 total)
  • Undefined issue on line #391 of wp-font-awesome-share.php file.

    Hello Guys,

    Thanks for developing this plugin. But there a little issue about the
    $share_count variable on mentioned path.

    When you set “No” value to “Display shares counter” filed then you faced with undefined variable error on everywhere that you used of this plugin on front-end side.

    How you can resolving the issue, Just make sure that the variable defined before,

    Incorrect code:

    {{{
    </span>’. ($share_count >= $wpfai_counter_minimum && $share_count !== false ? ‘<div class=”counter”>’ . $share_count . ‘</div>’ : ”) .’

    }}}

    Correct:

    {{{
    </span>’. ((isset($share_count) && $share_count >= $wpfai_counter_minimum) && $share_count !== false ? ‘<div class=”counter”>’ . $share_count . ‘</div>’ : ”) .’

    }}}

    I hope that this report help you to improving more this plugin. 🙂

Viewing 1 replies (of 1 total)