Plugin Directory

Changeset 1168208


Ignore:
Timestamp:
05/27/2015 06:08:44 AM (11 years ago)
Author:
oscitas
Message:

4.4.2

  • [Fixes] Now close session only if session is started by EBS plugin, to remove conflict with other plugins session.
Location:
easy-bootstrap-shortcodes
Files:
185 added
6 edited

Legend:

Unmodified
Added
Removed
  • easy-bootstrap-shortcodes/trunk/README.txt

    r1164219 r1168208  
    55Requires at least: 3.0
    66Tested up to: 4.0
    7 Stable tag: 4.0.0
     7Stable tag: 4.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    151151
    152152
     153= 4.4.2 =
     154
     155* [Fixes] Now close session only if session is started by EBS plugin, to remove conflict with other plugins session.
     156
    153157= 4.4.1 =
    154158
  • easy-bootstrap-shortcodes/trunk/osc_bootstrap_shortcode.php

    r1164219 r1168208  
    55  Plugin URI: http://www.oscitasthemes.com
    66  Description: Add bootstrap 3.0.3 styles to your theme by wordpress editor shortcode buttons.
    7   Version: 4.4.1
     7  Version: 4.4.2
    88  Author: oscitas
    99  Author URI: http://www.oscitasthemes.com
     
    1414 * function used to check whether ebs activated this check included in EBS Pro
    1515 */
     16$_EBS_SESSION_STARTED = false;
    1617function osc_ebs_plugin_exists( $prevent ) {
    1718    return 'ebs';
     
    176177            ebs_session_start();
    177178            $_SESSION['ebs_dynamic_css'] =$_POST['ebs_custom_css'];
    178             session_write_close();
     179            ebs_session_end();
    179180            update_option( 'EBS_SHORTCODE_PREFIX', isset($_POST['shortcode_prefix'])?$_POST['shortcode_prefix']:'' );
    180181
     
    290291        ebs_session_start();
    291292        $_SESSION['ebs_dynamic_css'] = get_option('EBS_CUSTOM_CSS','');
    292         session_write_close();
     293        ebs_session_end();
    293294        wp_enqueue_style('ebs_dynamic_css', plugins_url('/styles/ebs_dynamic_css.php', __FILE__));
    294295
     
    376377    add_action('init','ebs_session_start');
    377378    function ebs_session_start() {
     379        global $_EBS_SESSION_STARTED;
    378380        if(!session_id()){
    379381            @session_start();
     382            $_EBS_SESSION_STARTED = true;
     383        }
     384    }
     385
     386    function ebs_session_end() {
     387        global $_EBS_SESSION_STARTED;
     388        if ($_EBS_SESSION_STARTED) {
     389            @session_write_close();
     390            $_EBS_SESSION_STARTED = false;
    380391        }
    381392    }
  • easy-bootstrap-shortcodes/trunk/shortcode/servicebox/plugin_shortcode.php

    r1157671 r1168208  
    77ebs_session_start();
    88$_SESSION['ebs_servicebox_css']=array();
    9 session_write_close();
     9ebs_session_end();
    1010function osc_theme_servicebox($params, $content = null) {
    1111    global $_ebsp_servicebox;
     
    8989    $_SESSION['ebs_servicebox_css'][]= 'ebs_servicebox_css_id_'.$id;
    9090    $_SESSION['ebs_servicebox_css_id_'.$id]=$style;
    91     session_write_close();
     91    ebs_session_end();
    9292    wp_enqueue_style('ebs-dstyle',EBS_PLUGIN_URL.'styles/ebs-dstyle.php');
    9393    return $out;
  • easy-bootstrap-shortcodes/trunk/shortcode/slider/plugin_shortcode.php

    r1157671 r1168208  
    1717        $_SESSION['ebs_slider_css']=array();
    1818    }
    19     session_write_close();
     19    ebs_session_end();
    2020    extract(shortcode_atts(array(
    2121        'id' => count($_oscitas_slider),
     
    8989}
    9090        ";
    91 session_write_close();
     91        ebs_session_end();
    9292    }
    9393    $_oscitas_slider['current_id'] -= 1;
  • easy-bootstrap-shortcodes/trunk/styles/ebs-dstyle.php

    r1164219 r1168208  
    4646}
    4747
    48 session_write_close();
     48//session_write_close();
  • easy-bootstrap-shortcodes/trunk/styles/ebs_dynamic_css.php

    r1164219 r1168208  
    1313}
    1414
    15 session_write_close();
     15//session_write_close();
Note: See TracChangeset for help on using the changeset viewer.