Plugin Directory

Changeset 2094487


Ignore:
Timestamp:
05/24/2019 11:51:59 AM (7 years ago)
Author:
wakeop
Message:

If question content is empty use title.

Location:
chained-quiz/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chained-quiz/trunk/chained-quiz.php

    r2054591 r2094487  
    55Description: Create a chained quiz where the upcoming questions can depend on the previous answer
    66Author: Kiboko Labs
    7 Version: 1.1.4
     7Version: 1.1.5
    88Author URI: http://calendarscripts.info/
    99License: GPLv2 or later
  • chained-quiz/trunk/models/question.php

    r1974865 r2094487  
    115115    function display_question($question) {
    116116        // for now only add stripslashes and autop, we'll soon add a filter like in Watupro
    117         $content = stripslashes($question->question);
     117        $content = empty($question->question) ? stripslashes($question->title) : stripslashes($question->question);
    118118        $content = wpautop($content);
    119119        $content = do_shortcode($content);
  • chained-quiz/trunk/readme.txt

    r2086677 r2094487  
    103103== Changelog ==
    104104
    105 = Version 1.1.4
     105= Version 1.1.5
    106106- Removed redundant Go Ahead button on the first question when the question is set to automatically continue.
    107107- Fixed bug with missing "Go ahead" button when a multiple-choice question had "autocontinue" selected.
     
    109109- Added option to change the text/value of the "Go Ahead" button from admin settings.
    110110- Added option to mask taker IP address for GDPR compliance.
     111- If question content is empty use title.
    111112
    112113= Version 1.1
Note: See TracChangeset for help on using the changeset viewer.