Changeset 1307111
- Timestamp:
- 12/13/2015 01:38:08 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tablemaster/trunk/admin/class-tablemaster-admin.php
r1296986 r1307111 44 44 */ 45 45 private static $instance; 46 public function getInstance( ) {46 public function getInstance( $plugin_name, $plugin_version ) { 47 47 if (null == self::$instance) { 48 self::$instance = new TableMaster_Admin ;48 self::$instance = new TableMaster_Admin( $plugin_name, $plugin_version ); 49 49 } 50 50 return self::$instance; … … 53 53 /** 54 54 * Initialize the class and set its properties. 55 * 56 * @param string $plugin_name The name of this plugin. 57 * @param string $version The version of this plugin. 58 */ 59 public function __construct() { 55 */ 56 public function __construct( $plugin_name, $plugin_version ) { 57 58 $this->plugin_name = $plugin_name; 59 $this->version = $plugin_version; 60 60 61 add_action( 'admin_init', array( &$this, 'admin_init' ) ); 61 62 }
Note: See TracChangeset
for help on using the changeset viewer.