Skip to content

Commit

Permalink
Keep the instance to ourselves
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Oct 8, 2015
1 parent 7d189b6 commit 0e0bc82
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Plugin URI: https://github.com/kasparsd/contact-form-7-extras
Author: Kaspars Dambis
Author URI: http://kaspars.net
Version: 0.3
Version: 0.3.1-dev
Tested up to: 4.3
License: GPL2
Text Domain: cf7-extras
Expand All @@ -18,16 +18,17 @@

class cf7_extras {

public static $instance;
private $rendered = array();


public static function instance() {

if ( ! self::$instance )
self::$instance = new self();
static $instance;

return self::$instance;
if ( ! $instance )
$instance = new self();

return $instance;

}

Expand Down

0 comments on commit 0e0bc82

Please sign in to comment.