Skip to content

Commit

Permalink
fixed minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ishwar-singh-solanki committed Apr 1, 2024
1 parent 2f55185 commit 3e6f7af
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions edwiser-bridge/edwiser-bridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: Edwiser Bridge - WordPress Moodle LMS Integration
* Plugin URI: https://edwiser.org/bridge-wordpress-moodle-integration/
* Description: Edwiser Bridge integrates WordPress with the Moodle LMS. The plugin provides an easy option to import Moodle courses to WordPress and sell them using PayPal. The plugin also allows automatic registration of WordPress users on the Moodle website along with single login credentials for both the systems.
* Version: 3.0.4
* Version: 3.0.5
* Author: WisdmLabs
* Author URI: https://edwiser.org
* License: GPL-2.0+
Expand All @@ -31,7 +31,7 @@
$eb_plugin_data = array(
'name' => 'Edwiser Bridge - WordPress Moodle LMS Integration',
'slug' => 'edwiser-bridge',
'version' => '3.0.4',
'version' => '3.0.5',
'mdl_plugin_url' => 'https://edwiser.org/plugins/edwiserbridge.zip',
);

Expand Down
1 change: 1 addition & 0 deletions edwiser-bridge/includes/class-eb-admin-notice-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ public function eb_admin_pro_notice_dismiss_handler() {
* Notice/popup for edwiser bridge pro after activation.
*/
public function eb_admin_pro_notice() {

global $eb_plugin_data;
$transient = get_transient( '_eb_pro_consolidated_plugin_notice' );
$dismissed = get_option( 'eb_pro_consolidated_plugin_notice_dismissed' );
Expand Down
4 changes: 4 additions & 0 deletions edwiser-bridge/includes/class-eb-post-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ public function register_taxonomies() {
'query_var' => true,
'hierarchical' => true,
'rewrite' => array( 'slug' => 'eb_category' ),
'show_in_rest' => true,
'publicly_queryable' => true,
)
)
);
Expand Down Expand Up @@ -143,6 +145,8 @@ public function register_post_types() {
'has_archive' => $show_archive,
'show_in_nav_menus' => true,
'taxonomies' => array( 'eb_course_cat' ),
'show_in_rest' => true,
'publicly_queryable' => true,
)
)
);
Expand Down
2 changes: 2 additions & 0 deletions edwiser-bridge/includes/class-eb-user-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,8 @@ public function unenroll_on_course_access_expire() {
$args = array(
'user_id' => $course_enroll_data->user_id,
'courses' => array( $course_enroll_data->course_id ),
'start_date' => $course_enroll_data->time,
'end_date' => $course_enroll_data->expire_time,
);
// get expiration action.
if ( isset( $course_options['course_expiry_action'] ) && 'suspend' === $course_options['course_expiry_action'] ) {
Expand Down
2 changes: 2 additions & 0 deletions edwiser-bridge/public/shortcodes/class-eb-shortcode-my-courses.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public function show_my_courses( $my_courses, $atts ) {
} else {
$template_loader->wp_get_template_part( 'content', 'none' );
}
wp_reset_postdata();
echo '</div>';
} else {

Expand Down Expand Up @@ -313,6 +314,7 @@ public function show_recommended_courses( $rec_cats = '', $exclude_courses = '',
} else {
$template_loader->wp_get_template_part( 'content', 'none' );
}
wp_reset_postdata();
}


Expand Down
4 changes: 2 additions & 2 deletions edwiser-bridge/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: WisdmLabs
Tags: wordpress moodle, moodle wordpress, moodle wocommerce, connect moodle with wordpress, sell moodle courses
Requires at least: 6.0
Tested up to: 6.4.3
Stable tag: 3.0.4
Stable tag: 3.0.5
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -78,7 +78,7 @@ So to enhance its functionality and achieve a fully automated WooCommerce Soluti

= Additional Edwiser products that provides improves your Moodle experience - =

= <a href="https://edwiser.org/remui/?utm_source=WordPress&utm_medium=landingpage&utm_campaign=EBFreePlugin">Edwiser RemUI </a> =
= <a href="https://edwiser.org/remui-moodle-theme/?utm_source=WordPress&utm_medium=landingpage&utm_campaign=EBFreePlugin">Moodle Theme - Edwiser RemUI </a> =

The Best theme for Moodle is one that is built to provide a superior user experience in Moodle. It also provides enhanced functionality to ease the process of course creation and navigation.

Expand Down

0 comments on commit 3e6f7af

Please sign in to comment.