Skip to content

Commit

Permalink
0.99
Browse files Browse the repository at this point in the history
  • Loading branch information
Bearded Avenger committed Dec 10, 2014
1 parent d79b840 commit a6760b1
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions idea-factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* @copyright 2015 Your Mom
*
* Plugin Name: Idea Factory
* Plugin URI: http://nickhaskins.com
* Plugin URI: http://nickhaskins.com/idea-factory
* Description: Front-end user submission and voting system.
* Version: 0.95
* GitLab Plugin URL: https://gitlab.com/bearded-avenger/idea-factory
* Version: 0.99
* Github Plugin URL: https://github.com/bearded-avenger/idea-factory
*/

// If this file is called directly, abort.
Expand All @@ -20,39 +20,18 @@
}

// Set some constants
define('IDEA_FACTORY_VERSION', '0.95');
define('IDEA_FACTORY_VERSION', '0.99');
define('IDEA_FACTORY_DIR', plugin_dir_path( __FILE__ ));
define('IDEA_FACTORY_URL', plugins_url( '', __FILE__ ));
/*----------------------------------------------------------------------------*
* Public-Facing Functionality
*----------------------------------------------------------------------------*/

require_once( plugin_dir_path( __FILE__ ) . 'public/class-idea-factory.php' );

/*
* Register hooks that are fired when the plugin is activated or deactivated.
* When the plugin is deleted, the uninstall.php file is loaded.
*
*/

register_activation_hook( __FILE__, array( 'Idea_Factory', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'Idea_Factory', 'deactivate' ) );

add_action( 'plugins_loaded', array( 'Idea_Factory', 'get_instance' ) );

/*----------------------------------------------------------------------------*
* Dashboard and Administrative Functionality
*----------------------------------------------------------------------------*/

/*
*
* If you want to include Ajax within the dashboard, change the following
* conditional to:
*
* if ( is_admin() ) {
* ...
* }
*
* The code below is intended to to give the lightest footprint possible.
*/
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {

require_once( plugin_dir_path( __FILE__ ) . 'admin/class-idea-factory-admin.php' );
Expand Down

0 comments on commit a6760b1

Please sign in to comment.