Plugin Directory

Changeset 3374894


Ignore:
Timestamp:
10/08/2025 08:17:43 AM (6 months ago)
Author:
guestapp
Message:

Update to version 2.2.6 from GitHub

Location:
guestapp
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • guestapp/tags/2.2.6/README.txt

    r3369496 r3374894  
    44Tested up to: 6.8.0
    55Requires PHP: 5.6
    6 Stable tag: 2.2.5
     6Stable tag: 2.2.6
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6060
    6161== Changelog ==
     62= 2.2.6 =
     63* Corrige les affichages d'avis pour les nouveaux établissements
    6264= 2.2.5 =
    6365* Corrige la liste des établissements disponibles (admin)
  • guestapp/tags/2.2.6/guest-suite.php

    r3369496 r3374894  
    44 * Plugin URI:        https://www.guest-suite.com/
    55 * Description:       Afficher la satisfaction de vos clients sur votre site avec le plugin Guest Suite pour Wordpress.
    6  * Version:           2.2.5
     6 * Version:           2.2.6
    77 * Requires at least: 4.6.1
    88 * Requires PHP:      5.6
  • guestapp/tags/2.2.6/includes/admin/charts/charts-functions.php

    r3369496 r3374894  
    392392        while ($query->have_posts()) {
    393393            $query->the_post();
     394            $establishment_id = get_post_meta(get_the_ID(), 'gs_establishments_id', true);
     395            $establishment_id = $establishment_id !== '' ? $establishment_id : get_post_meta(get_the_ID(), 'gs_locationUuid', true);
    394396            $reviews[] = (object) array(
    395397                'user' => get_post_meta(get_the_ID(), 'gs_user_name', true),
     
    398400                'date' => get_post_meta(get_the_ID(), 'gs_publication_date', true),
    399401                'establishment_name' => get_post_meta(get_the_ID(), 'gs_establishments_name', true),
    400                 'establishment_id' => get_post_meta(get_the_ID(), 'gs_establishments_id', true),
     402                'establishment_id' => $establishment_id,
    401403            );
    402404        }
  • guestapp/tags/2.2.6/includes/shortcodes/carousel.php

    r3364049 r3374894  
    167167    if (!empty($atts['establishment_id'])) {
    168168        $args['meta_query'][] = array(
    169             'key' => 'gs_establishments_id',
    170             'value' => $atts['establishment_id'],
    171             'compare' => '='
     169                'relation' => 'OR',
     170                'establishment_id' => array(
     171                        'key' => 'gs_establishments_id',
     172                        'value' => $atts['establishment_id'],
     173                        'compare' => '='
     174                ),
     175                'locationUuid' => array(
     176                        'key' => 'gs_locationUuid',
     177                        'value' => $atts['establishment_id'],
     178                        'compare' => '='
     179                ),
    172180        );
    173181    }
  • guestapp/tags/2.2.6/includes/shortcodes/grid.php

    r3234706 r3374894  
    6767    if (!empty($atts['establishment_id'])) {
    6868        $args['meta_query'][] = array(
    69             'key' => 'gs_establishments_id',
    70             'value' => $atts['establishment_id'],
    71             'compare' => '='
     69            'relation' => 'OR',
     70            'establishment_id' => array(
     71                'key' => 'gs_establishments_id',
     72                'value' => $atts['establishment_id'],
     73                'compare' => '='
     74            ),
     75            'locationUuid' => array(
     76                'key' => 'gs_locationUuid',
     77                'value' => $atts['establishment_id'],
     78                'compare' => '='
     79            ),
    7280        );
    7381    }
  • guestapp/tags/2.2.6/includes/shortcodes/list.php

    r3364049 r3374894  
    134134    if ($atts['establishment_id']) {
    135135        $args['meta_query'][] = array(
    136             'key' => 'gs_establishments_id',
    137             'value' => $atts['establishment_id'],
    138             'compare' => '='
     136            'relation' => 'OR',
     137            'establishment_id' => array(
     138                'key' => 'gs_establishments_id',
     139                'value' => $atts['establishment_id'],
     140                'compare' => '='
     141            ),
     142            'locationUuid' => array(
     143                'key' => 'gs_locationUuid',
     144                'value' => $atts['establishment_id'],
     145                'compare' => '='
     146            ),
    139147        );
    140148    }
     
    273281    if ($establishment_id) {
    274282        $args['meta_query'][] = array(
    275             'key' => 'gs_establishments_id',
    276             'value' => $establishment_id,
    277             'compare' => '='
     283            'relation' => 'OR',
     284            'establishment_id' => array(
     285                'key' => 'gs_establishments_id',
     286                'value' => $establishment_id,
     287                'compare' => '='
     288            ),
     289            'locationUuid' => array(
     290                'key' => 'gs_locationUuid',
     291                'value' => $establishment_id,
     292                'compare' => '='
     293            ),
    278294        );
    279295    }
  • guestapp/tags/2.2.6/includes/shortcodes/ranking.php

    r3233690 r3374894  
    4545    if ($atts['establishment_id']) {
    4646        $args['meta_query'][] = array(
    47             'key' => 'gs_establishments_id',
    48             'value' => $atts['establishment_id'],
    49             'compare' => '='
     47            'relation' => 'OR',
     48            'establishment_id' => array(
     49                'key' => 'gs_establishments_id',
     50                'value' => $atts['establishment_id'],
     51                'compare' => '='
     52            ),
     53            'locationUuid' => array(
     54                'key' => 'gs_locationUuid',
     55                'value' => $atts['establishment_id'],
     56                'compare' => '='
     57            ),
    5058        );
    5159    }
  • guestapp/trunk/README.txt

    r3369496 r3374894  
    44Tested up to: 6.8.0
    55Requires PHP: 5.6
    6 Stable tag: 2.2.5
     6Stable tag: 2.2.6
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6060
    6161== Changelog ==
     62= 2.2.6 =
     63* Corrige les affichages d'avis pour les nouveaux établissements
    6264= 2.2.5 =
    6365* Corrige la liste des établissements disponibles (admin)
  • guestapp/trunk/guest-suite.php

    r3369496 r3374894  
    44 * Plugin URI:        https://www.guest-suite.com/
    55 * Description:       Afficher la satisfaction de vos clients sur votre site avec le plugin Guest Suite pour Wordpress.
    6  * Version:           2.2.5
     6 * Version:           2.2.6
    77 * Requires at least: 4.6.1
    88 * Requires PHP:      5.6
  • guestapp/trunk/includes/admin/charts/charts-functions.php

    r3369496 r3374894  
    392392        while ($query->have_posts()) {
    393393            $query->the_post();
     394            $establishment_id = get_post_meta(get_the_ID(), 'gs_establishments_id', true);
     395            $establishment_id = $establishment_id !== '' ? $establishment_id : get_post_meta(get_the_ID(), 'gs_locationUuid', true);
    394396            $reviews[] = (object) array(
    395397                'user' => get_post_meta(get_the_ID(), 'gs_user_name', true),
     
    398400                'date' => get_post_meta(get_the_ID(), 'gs_publication_date', true),
    399401                'establishment_name' => get_post_meta(get_the_ID(), 'gs_establishments_name', true),
    400                 'establishment_id' => get_post_meta(get_the_ID(), 'gs_establishments_id', true),
     402                'establishment_id' => $establishment_id,
    401403            );
    402404        }
  • guestapp/trunk/includes/shortcodes/carousel.php

    r3364049 r3374894  
    167167    if (!empty($atts['establishment_id'])) {
    168168        $args['meta_query'][] = array(
    169             'key' => 'gs_establishments_id',
    170             'value' => $atts['establishment_id'],
    171             'compare' => '='
     169                'relation' => 'OR',
     170                'establishment_id' => array(
     171                        'key' => 'gs_establishments_id',
     172                        'value' => $atts['establishment_id'],
     173                        'compare' => '='
     174                ),
     175                'locationUuid' => array(
     176                        'key' => 'gs_locationUuid',
     177                        'value' => $atts['establishment_id'],
     178                        'compare' => '='
     179                ),
    172180        );
    173181    }
  • guestapp/trunk/includes/shortcodes/grid.php

    r3234706 r3374894  
    6767    if (!empty($atts['establishment_id'])) {
    6868        $args['meta_query'][] = array(
    69             'key' => 'gs_establishments_id',
    70             'value' => $atts['establishment_id'],
    71             'compare' => '='
     69            'relation' => 'OR',
     70            'establishment_id' => array(
     71                'key' => 'gs_establishments_id',
     72                'value' => $atts['establishment_id'],
     73                'compare' => '='
     74            ),
     75            'locationUuid' => array(
     76                'key' => 'gs_locationUuid',
     77                'value' => $atts['establishment_id'],
     78                'compare' => '='
     79            ),
    7280        );
    7381    }
  • guestapp/trunk/includes/shortcodes/list.php

    r3364049 r3374894  
    134134    if ($atts['establishment_id']) {
    135135        $args['meta_query'][] = array(
    136             'key' => 'gs_establishments_id',
    137             'value' => $atts['establishment_id'],
    138             'compare' => '='
     136            'relation' => 'OR',
     137            'establishment_id' => array(
     138                'key' => 'gs_establishments_id',
     139                'value' => $atts['establishment_id'],
     140                'compare' => '='
     141            ),
     142            'locationUuid' => array(
     143                'key' => 'gs_locationUuid',
     144                'value' => $atts['establishment_id'],
     145                'compare' => '='
     146            ),
    139147        );
    140148    }
     
    273281    if ($establishment_id) {
    274282        $args['meta_query'][] = array(
    275             'key' => 'gs_establishments_id',
    276             'value' => $establishment_id,
    277             'compare' => '='
     283            'relation' => 'OR',
     284            'establishment_id' => array(
     285                'key' => 'gs_establishments_id',
     286                'value' => $establishment_id,
     287                'compare' => '='
     288            ),
     289            'locationUuid' => array(
     290                'key' => 'gs_locationUuid',
     291                'value' => $establishment_id,
     292                'compare' => '='
     293            ),
    278294        );
    279295    }
  • guestapp/trunk/includes/shortcodes/ranking.php

    r3233690 r3374894  
    4545    if ($atts['establishment_id']) {
    4646        $args['meta_query'][] = array(
    47             'key' => 'gs_establishments_id',
    48             'value' => $atts['establishment_id'],
    49             'compare' => '='
     47            'relation' => 'OR',
     48            'establishment_id' => array(
     49                'key' => 'gs_establishments_id',
     50                'value' => $atts['establishment_id'],
     51                'compare' => '='
     52            ),
     53            'locationUuid' => array(
     54                'key' => 'gs_locationUuid',
     55                'value' => $atts['establishment_id'],
     56                'compare' => '='
     57            ),
    5058        );
    5159    }
Note: See TracChangeset for help on using the changeset viewer.