Skip to content

Commit

Permalink
Remove unused WpNonce instance property
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Oct 12, 2016
1 parent 0ef1799 commit fb660b0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/WpNonce.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ final class WpNonce implements NonceInterface
*/
private $life;

/**
* @var string
*/
private $nonce_value;

/**
* Constructor. Save properties as instance variables.
*
Expand Down Expand Up @@ -104,9 +99,7 @@ public function __toString()
$value = wp_create_nonce($this->hashedAction());
remove_filter('nonce_life', $lifeFilter);

$this->nonce_value = $value;

return $this->nonce_value;
return $value;
}

/**
Expand Down

0 comments on commit fb660b0

Please sign in to comment.