Plugin Directory

Changeset 3354287


Ignore:
Timestamp:
09/01/2025 11:29:43 PM (6 months ago)
Author:
mitfi
Message:

New version 2.5.23.5

Location:
foodle-for-democracy-poll
Files:
70 added
4 edited

Legend:

Unmodified
Added
Removed
  • foodle-for-democracy-poll/trunk/foodle-foodle-shortcode.php

    r3183923 r3354287  
    33 * Author: Michael Finkenberger
    44 * @since V1.0.0.0 (file separation @since V1.5.1.0)
    5  * Last change in plugin version: V2.5.21.1 (The comments column has now an equal column width and answerlist format has been improved related to comments and in 2.5.21.1., contribution was introduced for the protected spaces in sort lists)
    6  * Date: 07.11.2024
     5 * Last change in plugin version: V2.5.23.5 (The comments column has now an equal column width and answerlist format has been improved related to comments, in 2.5.21.1.: contribution was introduced for the protected spaces in sort lists and in 2.5.23.5: line 110)
     6 * Date: 02.09.2025
    77 * Tested with the latest plugin version
    88*/
     
    107107  } else if ( ! $ajax ) {
    108108    $dem_id = $dem_id; // Poll ID submitted through shortcode like id="x" stays what it is, just to be complete for better understanding
    109     $foodle_private_token = mt_rand(1000000000, 1999999999).$dem_id; // a new one
     109    $foodle_private_token = mt_rand(1000000000, 1999999999). $dem_id; // a new one
     110    //$foodle_private_token = substr(preg_replace("/[^0-9]/", "", hash('md5',$dem_id)),0,10). $dem_id; // a new one
    110111  }
    111112 
  • foodle-for-democracy-poll/trunk/foodle-for-democracy-poll.php

    r3336208 r3354287  
    1717 * Licence: GPLv2 or later
    1818 *
    19  * Version: 2.5.23.4
    20  * Date: 29.07.2025
     19 * Version: 2.5.23.5
     20 * Date: 02.09.2025
    2121*/
    2222
     
    2525if(!defined('ABSPATH')) die(); // no direct access
    2626
    27 const FOODLE_VERSION = '2.5.23.4';
     27const FOODLE_VERSION = '2.5.23.5';
    2828global $foodle_title;                    // just the administrator's choice
    2929global $foodle_admin_menu_color;         // color value
  • foodle-for-democracy-poll/trunk/js/foodle_radio.js

    r3016871 r3354287  
    22 * Author: Michael Finkenberger
    33 * @since V1.1.0.0
    4  * Last change in plugin version: V1.1.0.0
    5  * Date: 14.04.2021
     4 * Last change in plugin version: V2.5.23.5
     5 * Date: 02.09.2025
    66 * Tested with the latest plugin version
    77*/
     
    3535
    3636function foodle_change_demCollectAnsw () {
    37   $.fn.demCollectAnsw = function(){
    38     var $ = jQuery;
     37  jQuery.fn.demCollectAnsw = function(){
    3938    var $form = this.closest( "form" )
    4039    var $answers = $form.find( "[type=checkbox],[type=radio],[type=text]" )
    41     var userText = $form.find( "[type=text]" ).val()    // changed from original '$form.find( userAnswer ).val()'
     40    var userText = $form.find( "[type=text]" ).val()       // changed from original '$form.find( userAnswer ).val()'
    4241    var answ = []
    4342    var $checkbox = $answers.filter( "[type=checkbox]:checked" )
     
    4645    if( $checkbox.length > 0 ){
    4746      $checkbox.each( function(){
    48         answ.push( $( this ).val() )
     47        answ.push( jQuery( this ).val() )
    4948      } )
    50       // and mixed                                        // added to original for mixed polls
    51       var str = $answers.filter( "[type=radio]:checked" ) // added to original for mixed polls
    52       if( str.length )                                    // added to original for mixed polls
    53         answ.push( str.val() )                            // added to original for mixed polls
     49      // and mixed                                         // added to original for mixed polls
     50      var $str = $answers.filter( "[type=radio]:checked" ) // added to original for mixed polls
     51      if( $str.length )                                    // added to original for mixed polls
     52        answ.push( $str.val() )                            // added to original for mixed polls
    5453    }
    5554    // single
    5655    else {
    57       var str = $answers.filter( "[type=radio]:checked" )
    58       if( str.length )
    59         answ.push( str.val() )
     56      var $str = $answers.filter( "[type=radio]:checked" ) // added $ to original for mixed polls
     57      if( $str.length )                                    // added $ to original for mixed polls
     58        answ.push( $str.val() )                            // added $ to original for mixed polls
    6059    }
    6160
  • foodle-for-democracy-poll/trunk/readme.txt

    r3336208 r3354287  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 2.5.23.4
     8Stable tag: 2.5.23.5
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    163163== Changelog ==
    164164
     165= 2.5.23.5 =
     166* (Tweak) Some stability improvements in order to ensure a sustainable collaboration with the latest version of Democracy Poll.
     167
    165168= 2.5.23.4 =
    166169* (Tweak) In the Foodle settings, the default content for Democracy Poll's textarea can now contain basic HTML code, limited like in WordPress posts.
Note: See TracChangeset for help on using the changeset viewer.