Skip to content

Commit

Permalink
Merge pull request #300 from woothemes/release-1-4-9
Browse files Browse the repository at this point in the history
v1.4.9
  • Loading branch information
Dan Johnson committed Feb 13, 2014
2 parents fa00a31 + 9bae7e3 commit a53d116
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion assets/css/frontend.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/css/frontend.less
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ section.entry span.course-price { padding-left: 10px; }
/*-------------------------------------------------------------------------------------------*/
.course-container, .course, .lesson, .quiz, .learner-info {
p.sensei-message, div.sensei-message {
clear: both;
margin: 1.387em 0 1.618em 0;
padding: 1em 1.618em;
border:none!important;
Expand Down
2 changes: 1 addition & 1 deletion assets/js/lesson-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ jQuery(document).ready( function($) {
if ( jQuery( '#course-prerequisite-options' ).exists() ) { jQuery( '#course-prerequisite-options' ).chosen(); }
if ( jQuery( '#course-category-options' ).exists() ) { jQuery( '#course-category-options' ).chosen(); }
// Courses Write Panel
if ( jQuery( '#course-woocommerce-product-options' ).exists() && '-' != jQuery( '#course-woocommerce-product-options' ).val() ) { jQuery( '#course-woocommerce-product-options' ).chosen(); }
if ( jQuery( '#course-woocommerce-product-options' ).exists() ) { jQuery( '#course-woocommerce-product-options' ).chosen(); }
if ( jQuery( '#course-prerequisite-options' ).exists() ) { jQuery( '#course-prerequisite-options' ).chosen(); }
// Sensei Settings Panel
jQuery( 'div.woothemes-sensei-settings form select' ).each( function() {
Expand Down
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
*** Sensei Changelog ***

2014.02.13 - version 1.4.9
* Fix - Fixing WooCommerce taxonomy templates when Sensei is active
* Fix - Fixing bug that was causing grades to be higher than 100%
* Fix - Clearing floats on Sensei front-end messages
* Fix - Making sure chosen drop down is always used on course product selection

2014.01.23 - version 1.4.8
* New - Allowing access to courses when WooCommerce order is marked as processing
* Fix - Ensuring that all purchased courses show up on the My Courses page
Expand Down
2 changes: 1 addition & 1 deletion classes/class-woothemes-sensei-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function enqueue_styles () {
$disable_styles = apply_filters( 'sensei_disable_styles', $disable_styles );

if ( ! $disable_styles ) {
wp_register_style( $woothemes_sensei->token . '-frontend', $woothemes_sensei->plugin_url . 'assets/css/frontend.css', '', '1.3.3', 'screen' );
wp_register_style( $woothemes_sensei->token . '-frontend', $woothemes_sensei->plugin_url . 'assets/css/frontend.css', '', '1.4.9', 'screen' );
wp_enqueue_style( $woothemes_sensei->token . '-frontend' );

// Allow additional stylesheets to be loaded
Expand Down
2 changes: 1 addition & 1 deletion classes/class-woothemes-sensei-lesson.php
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ public function enqueue_scripts( $hook ) {
if ( ( ( isset( $post_type ) && in_array( $post_type, $allowed_post_types ) ) && ( isset( $hook ) && in_array( $hook, $allowed_post_type_pages ) ) ) || ( isset( $hook ) && in_array( $hook, $allowed_hooks ) ) ) {

// Load the lessons script
wp_enqueue_script( 'woosensei-lesson-metadata', $woothemes_sensei->plugin_url . 'assets/js/lesson-metadata.js', array( 'jquery' ), '1.4.8' );
wp_enqueue_script( 'woosensei-lesson-metadata', $woothemes_sensei->plugin_url . 'assets/js/lesson-metadata.js', array( 'jquery' ), '1.4.9' );
wp_enqueue_script( 'woosensei-lesson-chosen', $woothemes_sensei->plugin_url . 'assets/chosen/chosen.jquery.min.js', array( 'jquery' ), '1.3.0' );
wp_enqueue_script( 'woosensei-chosen-ajax', $woothemes_sensei->plugin_url . 'assets/chosen/ajax-chosen.jquery.min.js', array( 'jquery', 'woosensei-lesson-chosen' ), '1.4.6' );
$translation_strings = array();
Expand Down
3 changes: 3 additions & 0 deletions classes/class-woothemes-sensei-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,9 @@ public function sensei_get_quiz_total( $quiz_id = 0 ) {
$question_grade = 0;
foreach( $questions as $question ) {
$question_grade = get_post_meta( $question->ID, '_question_grade', true );
if( ! $question_grade || $question_grade == '' ) {
$question_grade = 1;
}
$quiz_total += $question_grade;
}
}
Expand Down
10 changes: 0 additions & 10 deletions classes/class-woothemes-sensei.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,16 +416,6 @@ public function template_loader ( $template ) {
$find[] = $this->template_url . $file;
} // End If Statement

} elseif ( is_tax( 'product_cat' ) || is_tax( 'product_tag' ) ) {

$term = get_queried_object();

$file = 'taxonomy-' . $term->taxonomy . '.php';
$find[] = 'taxonomy-' . $term->taxonomy . '-' . $term->slug . '.php';
$find[] = $this->template_url . 'taxonomy-' . $term->taxonomy . '-' . $term->slug . '.php';
$find[] = $file;
$find[] = $this->template_url . $file;

} elseif ( is_post_type_archive( 'course' ) || is_page( $this->get_page_id( 'courses' ) ) ) {

$file = 'archive-course.php';
Expand Down
4 changes: 2 additions & 2 deletions woothemes-sensei.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Sensei
Plugin URI: http://www.woothemes.com/products/sensei/
Description: Sensei by WooThemes is the best Learning Management System ever!
Version: 1.4.8
Version: 1.4.9
Author: WooThemes
Author URI: http://www.woothemes.com/
License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Expand Down Expand Up @@ -31,7 +31,7 @@
if ( ! is_admin() ) require_once( 'inc/woothemes-sensei-template.php' );
global $woothemes_sensei;
$woothemes_sensei = new WooThemes_Sensei( __FILE__ );
$woothemes_sensei->version = '1.4.8';
$woothemes_sensei->version = '1.4.9';

/**
* Plugin updates
Expand Down

0 comments on commit a53d116

Please sign in to comment.