Course Images are getting displayed incorrectly
-
First of all I’d like to thank you for this great plugin.
Next, I’d like to point out a few glitches I’ve observed while using it.
The course images are not getting displayed CORRECTLY. Stressing that they ARE getting displayed but NOT CORRECTLY. Meaning they are displayed out of the intended markup.
Reason for this is the incorrect usage of the functioncourse_image
In file bp-sensei-functions.php at line number 262, lies this code:
$active_html .= $woothemes_sensei->post_types->course->course_image( absint( $course_item->ID ) );
In this call, the parameter “return” is not passed, so the image is being displayed (and out of the intended markup), instead of being returned.
The problem is compounded when there are multiple courses and hence multiple images.
Same thing is at the line no. 470 .
Another glitch is that there is no space in text in the Course Progress.
For example:31 Lessonsin XYZ0 of 31 lessons completed
Note that there is no space between Lessons and in
Similar no space between XYZ and 0Relevant code is in line 286 to 291 of bp-sensei-functions.php
Is there a way to override this?
- The topic ‘Course Images are getting displayed incorrectly’ is closed to new replies.