Plugin Directory

Changeset 2138842


Ignore:
Timestamp:
08/13/2019 12:29:51 PM (7 years ago)
Author:
ecalypse
Message:

Fixed "resend booking status" functionality.

Location:
ecalypse-rental-starter/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ecalypse-rental-starter/trunk/class.ecalypse-rental-admin.php

    r2057151 r2138842  
    10341034        // RESEND CONFIRMATION EMAIL
    10351035        if (isset($_POST['resend_email']) && !empty($_POST['id_booking'])) {
    1036             if (!current_user_can('manage_ecalypse_rental')) {
    1037                 return;
    1038             }
     1036           
     1037            if (!current_user_can('manage_ecalypse_rental')) {
     1038                return;
     1039            }
     1040           
    10391041            check_admin_referer( 'resend_email');
     1042           
    10401043            $data = $wpdb->get_row($wpdb->prepare('SELECT * FROM `' . EcalypseRental::$db['booking'] . '` WHERE `id_booking` = %d', (int)$_POST['id_booking']), ARRAY_A);
    10411044            switch ($data['status']) {
     
    33143317                self::get_local_theme_translations();
    33153318            }
    3316 
     3319            wp_cache_delete( 'alloptions', 'options' );
    33173320            return true;
    33183321        } catch (Exception $e) {
  • ecalypse-rental-starter/trunk/class.ecalypse-rental.php

    r2101646 r2138842  
    249249        add_rewrite_rule('detail/([0-9]{1,3})-(.+?)/?$', 'index.php?detail_id=$matches[1]&detail_url=$matches[2]', 'top');
    250250
    251         if ($lng_rule != '') {
     251        if (!empty($lng_rule)) {
    252252            if (!isset($rewrite_rules_array[$lng_rule . 'detail/([0-9]{1,3})-(.+?)/?$'])) {
    253253                $flush = true;
     
    21702170
    21712171            $vehicle = $wpdb->get_row($wpdb->prepare($sql.$sql_having, $id_fleet));
    2172 
    21732172            if (DEBUG_MODE) {
    21742173                echo 'debug mode SQL: ';
  • ecalypse-rental-starter/trunk/ecalypse-rental-starter.php

    r2112759 r2138842  
    77  Plugin URI: http://ecalypse.com/wordpressecalypse-rental/
    88  Description: Ecalypse Rental Starter enables complete rental management of cars, bikes and other equipment.
    9   Version: 4.0.15
     9  Version: 4.0.16
    1010  Author: Ecalypse s.r.o.
    1111  Author URI: http://ecalypse.com/
     
    7474} else {
    7575
    76     define('ECALYPSERENTALSTARTER_VERSION', '4.0.15');
     76    define('ECALYPSERENTALSTARTER_VERSION', '4.0.16');
    7777    define('ECALYPSERENTALSTARTER__MINIMUM_WP_VERSION', '3.9');
    7878    define('ECALYPSERENTALSTARTER__PLUGIN_URL', plugin_dir_url(__FILE__));
  • ecalypse-rental-starter/trunk/views/ecalypse-rental-booking.php

    r2112759 r2138842  
    701701                              <form action="" method="post" class="form-inline" role="form">
    702702                                                <div class="form-group">
     703                                                    <?php wp_nonce_field( 'resend_email'); ?>
    703704                                                    <input type="hidden" name="id_booking" value="<?= $val->id_booking ?>">
    704705                                                    <button name="resend_email" class="btn btn-xs btn-success"><?php _e('Resend current status email', 'ecalypse-rental');?></button>
Note: See TracChangeset for help on using the changeset viewer.