Skip to content

Commit

Permalink
remove unused parameter from "track_visit" (#286)
Browse files Browse the repository at this point in the history
The $is_snippet parameter is no longer used and the mixed return type
bool/void was never user at all. Remove the parameter and make the
function void.
  • Loading branch information
stklcode committed Mar 14, 2024
1 parent 9e96624 commit c398a35
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions inc/class-statify-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,15 @@ class Statify_Frontend extends Statify {
/**
* Track the page view
*
* @since 0.1.0
* @since 1.7.0 $is_snippet parameter added.
* @version 1.7.0
* @since 0.1.0
* @since 1.7.0 $is_snippet parameter added.
* @since 2.0.0 Removed $is_snippet parameter.
*
* @param boolean $is_snippet [deprecated] Is tracking triggered via JS (default: false).
*
* @return boolean
* @return void
*/
public static function track_visit( $is_snippet = false ) {
public static function track_visit() {
if ( self::is_javascript_tracking_enabled() ) {
return false;
return;
}

// Set target & referrer.
Expand Down

0 comments on commit c398a35

Please sign in to comment.