Plugin Directory

Changeset 1285336


Ignore:
Timestamp:
11/13/2015 04:20:47 AM (10 years ago)
Author:
bgentry
Message:

fixed what 3.2.8.2 was supposed to fix.

Location:
easy-faq-with-expanding-text
Files:
21 added
2 edited

Legend:

Unmodified
Added
Removed
  • easy-faq-with-expanding-text/trunk/faq.php

    r1285301 r1285336  
    33Plugin Name: Easy FAQ with Expanding Text
    44Description: Easily create a Frequently Asked Questions page with answers that slide down when the questions are clicked...or a non-FAQ page with the same effect. No need for a shortcode, HTML coding, or javascript tweaking.
    5 Version: 3.2.8.2
     5Version: 3.2.8.3
    66Author: bgentry
    77Author URI: http://bryangentry.us
     
    119119        if ( $foldupOptions == 'default' || $foldupOptions == false ) {
    120120            $faqoptions = get_option('bg_faq_options');
    121             $foldup = ($faqoptions['foldup']) ? $faqoptions['foldup'] : 'no';
     121        if ( array_key_exists('foldup',$faqoptions) ) {
     122            $foldup = $faqoptions['foldup'];
     123        } else {
     124            $foldup = 'no';
     125        }
    122126        }
    123127        else {
     
    134138function faq_footer() {
    135139    $faqoptions = get_option('bg_faq_options');
    136     $foldup = ($faqoptions['foldup']) ? $faqoptions['foldup'] : 'no';
     140            if ( array_key_exists('foldup',$faqoptions) ) {
     141            $foldup = $faqoptions['foldup'];
     142        } else {
     143            $foldup = 'no';
     144        }
    137145    echo '<script>if ( typeof faqStarted == "undefined" ) {
    138146    faqStarted = true; 
     
    146154    if ( $foldupOptions == 'default' || $foldupOptions == false ) {
    147155            $faqoptions = get_option('bg_faq_options');
    148             $foldup = ($faqoptions['foldup']) ? $faqoptions['foldup'] : 'no';
     156        if ( array_key_exists('foldup',$faqoptions) ) {
     157            $foldup = $faqoptions['foldup'];
     158        } else {
     159            $foldup = 'no';
     160        }
    149161    }
    150162    else {
     
    332344        $foldupDefaultChecked = '';
    333345    } else {
    334         $foldup = ($faqoptions['foldup']) ? $faqoptions['foldup'] : 'no';
     346        if ( array_key_exists('foldup',$faqoptions) ) {
     347            $foldup = $faqoptions['foldup'];
     348        } else {
     349            $foldup = 'no';
     350        }
    335351        $foldupYesChecked = '';
    336352        $foldupNoChecked = '';
     
    410426    if ( $foldupOptions == 'default' || $foldupOptions == false ) {
    411427        $faqoptions = get_option('bg_faq_options');
    412         $foldup = ($faqoptions['foldup']) ? $faqoptions['foldup'] : 'no';
     428        if ( array_key_exists('foldup',$faqoptions) ) {
     429            $foldup = $faqoptions['foldup'];
     430        } else {
     431            $foldup = 'no';
     432        }
    413433    }
    414434        else {
  • easy-faq-with-expanding-text/trunk/readme.txt

    r1285301 r1285336  
    44Tags: faq pages
    55Tested up to: 4.3.1
    6 Stable tag: 3.2.8.2
     6Stable tag: 3.2.8.3
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2323
    2424== Changelog ==
     25
     26=3.2.8.3=
     27Fixed what 3.2.8.2 was supposed to fix. :)
    2528
    2629=3.2.8.2=
Note: See TracChangeset for help on using the changeset viewer.