/** * Return an instance of this class. * * @since 1.0.0 * * @return object A single instance of this class. */ public static function get_instance() { // If the single instance hasn"t been set, set it now. if (null == self::$instance) { self::$instance = new self(); } return self::$instance; }
* @package wp-editor-comments-plus * @author Kentaro Fischer <*****@*****.**> * @license GPL-2.0+ * @link http://kentarofischer.com * @copyright 1-4-2015 Kentaro Fischer * * @wordpress-plugin * Plugin Name: WP Editor Comments Plus * Plugin URI: http://kentarofischer.com * Description: Enhance WordPress comments with the TinyMCE Editor, Inline Comment Editing and Asynchronous Posting. * Version: 1.0.1 * Author: Kentaro Fischer * Author URI: http://kentarofischer.com * Text Domain: wp-editor-comments-plus-locale * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Domain Path: /lang */ // If this file is called directly, abort. if (!defined("WPINC")) { die; } // if ( ! class_exists( 'FirePHP' ) ) { require( 'fb.php' ); } define('wpecp_plugin_dir', plugin_dir_path(__FILE__)); define('wpecp_plugin_file', plugin_basename(__FILE__)); require_once wpecp_plugin_dir . "WPEditorCommentsPlus.php"; // Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively. register_activation_hook(__FILE__, array("WPEditorCommentsPlus", "activate")); register_deactivation_hook(__FILE__, array("WPEditorCommentsPlus", "deactivate")); WPEditorCommentsPlus::get_instance();