Skip to content

Commit

Permalink
3.5 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
saad-siddique committed May 3, 2021
1 parent fbd0010 commit 9998a2f
Show file tree
Hide file tree
Showing 68 changed files with 3,233 additions and 2,270 deletions.
822 changes: 582 additions & 240 deletions languages/uncanny-learndash-toolkit.pot

Large diffs are not rendered by default.

32 changes: 30 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Contributors: uncannyowl
Tags: LearnDash, eLearning, LMS, education, learning, courseware
Requires at least: 4.6
Tested up to: 5.7
Tested up to: 5.7.1
Requires PHP: 7.0
Stable tag: 3.4.3
Stable tag: 3.5
License: This plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or any later version. Uncanny Toolkit for LearnDash is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Uncanny Toolkit for LearnDash. If not, see https://www.gnu.org/licenses/gpl-3.0.html.
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -76,6 +76,34 @@ Follow Uncanny Owl for updates about our latest LearnDash enhancements on [Twitt

== Changelog ==

= 3.5 [2021-05-03] =

**Added:**

* WP 2FA - Two-factor Authentication plugin integration for Front End Login module #48
* One-click Uncanny Automator install #47

**Fixed:**

* Notice: Undefined index: uc_exp_email_body in Group Expiration Module #31
* Notice: Undefined index: uc_exp_email_title in Group Expiration Module #30
* LearnDash 3.4.x compatibility for Topics AutoComplete Lessons Module #21
* Topics complete lessons contains LD 3.4.0 incompatibility #46
* Deprecated notice when saving any module settings. #41
* Unable to open Settings in the Modules #34
* Deprecated: add_option was called with a deprecated argument in Config #29
* Notice: Trying to get property 'success' of non-object #28
* Notice: Undefined index action in Frontend Login Plus #27
* PHPMailer file path #16
* Incompatibility with LearnDash 3.4.x in Topics Autocomplete Lessons module #14
* Topics Autocomplete Lessons: Now only redirects to course level when completing the last topic in the last lesson of a course #4
* Front End Login: Custom reCAPTCHA text set in settings panel now overrides default reCAPTCHA text #3

**Updated:**

* "Upgrade to Pro" to Plugins page #24
* Code quality #18 #33

= 3.4.3 [2021-03-17] =
**Fixed:**

Expand Down
54 changes: 1 addition & 53 deletions src/admin-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use ReflectionClass;


/**
* Class AdminMenu
* @package uncanny_learndash_toolkit
Expand All @@ -27,7 +26,6 @@ public function __construct() {
// Setup Theme Options Page Menu in Admin
if ( is_admin() ) {
add_action( 'admin_menu', array( __CLASS__, 'register_options_menu_page' ) );
add_action( 'admin_menu', array( __CLASS__, 'sidebar_menu_add_try_automator' ), 99 );
add_action( 'admin_init', array( __CLASS__, 'register_options_menu_page_settings' ) );
add_action( 'admin_enqueue_scripts', array( __CLASS__, 'scripts' ) );
}
Expand Down Expand Up @@ -57,57 +55,6 @@ public static function register_options_menu_page() {

}

/**
*
*/
public static function sidebar_menu_add_try_automator() {
// Check if Automator is already installed
if ( ! defined( 'AUTOMATOR_BASE_FILE' ) ) {
// Check if we have to render the item
if ( apply_filters( 'ult_admin_sidebar_try_automator_add', true ) ) {
// Get the item text
$menu_item_text = apply_filters( 'ult_admin_sidebar_try_automator_text', sprintf( __( 'Try %s!', 'uncanny-learndash-toolkit' ), 'Automator' ) );

// Create the link content
$menu_item_html = '<span class="ult-sidebar-featured-item">' . apply_filters( 'ult_admin_sidebar_try_automator_inner_html', '<span class="ult-sidebar-featured-item__text">' . $menu_item_text . '</span><span class="ult-sidebar-featured-item__tag">' . __( 'New', 'uncanny-learndash-toolkit' ) . '</span>' ) . '</span>';

// Add the subpage menu
add_submenu_page(
'uncanny-toolkit',
sprintf( __( 'Try %s!', 'uncanny-learndash-toolkit' ), 'Automator' ),
$menu_item_html,
'manage_options',
self::get_automator_url(),
null,
99
);
}
}
}

/**
* @return string
*/
public static function get_automator_url() {
// Define the default URL
$automator_url = 'https://wordpress.org/plugins/uncanny-automator/';

// Get the current page locale
$locale = get_locale();

// Check if it's a Spanish locale
if ( 'es_' === (string) substr( $locale, 0, 3 ) ) {
// Check if it's the Argentinean locale
if ( 'es_AR' === (string) $locale ) {
$automator_url = 'https://es-ar.wordpress.org/plugins/uncanny-automator/';
} else {
$automator_url = 'https://es.wordpress.org/plugins/uncanny-automator/';
}
}

return $automator_url;
}

/*
* Whitelisted Options that are saved on the page
*/
Expand Down Expand Up @@ -154,6 +101,7 @@ public static function scripts( $hook ) {
wp_enqueue_style( 'wp-color-picker' );
wp_enqueue_script( 'wp-color-picker' );
}

}

/**
Expand Down
Loading

0 comments on commit 9998a2f

Please sign in to comment.