Skip to content

Commit

Permalink
Merge branch 'release/1.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Hemberger committed Apr 4, 2018
2 parents 25046ce + c3da058 commit 6e22531
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
### Changelog

#### 1.2.0 (4/4/18)
* Changed: Make public.

#### 1.1.0 (4/2/18)
* Fixed: Conflict with LD metabox by changing WP_Query to get_posts().
* Fixed: Missing text-domain.
Expand Down
16 changes: 7 additions & 9 deletions learndash-full-access-groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: LearnDash Full Access Groups
* Plugin URI: https://bizbudding.com
* Description: Allow specific Groups to access a course without start date restrictions.
* Version: 1.1.0
* Version: 1.2.0
*
* Author: BizBudding, Mike Hemberger
* Author URI: https://bizbudding.com
Expand Down Expand Up @@ -35,8 +35,7 @@ final class LD_Full_Access_Groups {
* @since 1.0.0
* @static var array $instance
* @uses LD_Full_Access_Groups::setup_constants() Setup the constants needed.
* @uses LD_Full_Access_Groups::includes() Include the required files.
* @uses LD_Full_Access_Groups::setup() Activate, deactivate, etc.
* @uses LD_Full_Access_Groups::run() Activate, deactivate, etc.
* @see LD_FULL_ACCESS_GROUPS()
* @return object | LD_Full_Access_Groups The one true LD_Full_Access_Groups
*/
Expand All @@ -46,7 +45,7 @@ public static function instance() {
self::$instance = new LD_Full_Access_Groups;
// Methods
self::$instance->setup_constants();
self::$instance->setup();
self::$instance->run();
}
return self::$instance;
}
Expand Down Expand Up @@ -89,7 +88,7 @@ private function setup_constants() {

// Plugin version.
if ( ! defined( 'LD_FULL_ACCESS_GROUPS_VERSION' ) ) {
define( 'LD_FULL_ACCESS_GROUPS_VERSION', '1.1.0' );
define( 'LD_FULL_ACCESS_GROUPS_VERSION', '1.2.0' );
}

// Plugin Folder Path.
Expand Down Expand Up @@ -124,7 +123,7 @@ private function setup_constants() {
*
* @return void
*/
public function setup() {
public function run() {
add_action( 'admin_init', array( $this, 'updater' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'register_scripts' ) );
add_action( 'add_meta_boxes', array( $this, 'register_metabox' ) );
Expand All @@ -144,7 +143,6 @@ public function updater() {
require_once LD_FULL_ACCESS_GROUPS_INCLUDES_DIR . 'vendor/plugin-update-checker/plugin-update-checker.php'; // 4.4
}
$updater = Puc_v4_Factory::buildUpdateChecker( 'https://github.com/bizbudding/learndash-full-access-groups/', __FILE__, 'learndash-full-access-groups' );
$updater->setAuthentication( '3221386f577b42d7089c35e0b4efffcaf3570ffd' );
}

/**
Expand Down Expand Up @@ -328,9 +326,9 @@ function course_bypass() {
*
* @return object|LD_Full_Access_Groups The one true LD_Full_Access_Groups Instance.
*/
function LD_Full_Access_Groups() {
function ld_full_access_groups() {
return LD_Full_Access_Groups::instance();
}

// Get LD_Full_Access_Groups Running.
LD_Full_Access_Groups();
ld_full_access_groups();

0 comments on commit 6e22531

Please sign in to comment.