Plugin Directory

Changeset 3105239


Ignore:
Timestamp:
06/20/2024 03:31:08 PM (22 months ago)
Author:
guestapp
Message:

Fix PHP8.2 deprecation and bump WP version compatibility

Location:
guestapp
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • guestapp/tags/1.4.29/CGuestApp.php

    r2932163 r3105239  
    9898                "ratings"               => isset($review->ratings) ? $review->ratings : new stdClass(),
    9999                "ratings_by_language"   => isset($review->ratings_by_language) ? $review->ratings_by_language : new stdClass(),
    100                 "comment_short"         => substr($review->comment, 0, 200) . (strlen($review->comment) > 200 ? "..." : ""),
     100                "comment_short"         => substr($review->comment, 0, 200) . (strlen((string) $review->comment) > 200 ? "..." : ""),
    101101                "comment_all"           => isset($review->comment) ? $review->comment : "",
    102102                "stay_type"             => isset($review->type) ? $review->type : "",
     
    246246    public function getJSONData($lang, $quantity, $original = null) {
    247247        // The widget can set two options related to the content. the first is lang, which defines the language of the reviews. The second is quantity, which defines the max amount of reviews shown
    248         $lang = strlen($lang) === 0 ? null : $lang;
    249         $lang_array = explode(",", $lang);
     248        $lang = strlen((string) $lang) === 0 ? null : $lang;
     249        $lang_array = explode(",", (string) $lang);
    250250        $returned = array();
    251251        $count = 0;
  • guestapp/tags/1.4.29/README.txt

    r2932163 r3105239  
    33Tags: reviews, tourism, hospitality, reputation, hotel, camping, restaurant, ereputation
    44Requires at least: 3.1
    5 Tested up to: 6.2
    6 Stable tag: 1.4.28
     5Tested up to: 6.5.4
     6Stable tag: 1.4.29
    77Requires PHP: 5.2
    88License: GPLv2
     
    3232
    3333== Changelog ==
     34
     35= 1.4.29 =
     36* remove PHP 8.2 deprecation
    3437
    3538= 1.4.28 =
  • guestapp/tags/1.4.29/guestapp.php

    r2932163 r3105239  
    55Plugin URI: https://wordpress.org/plugins/guestapp/
    66Description: Guest Suite Plugin
    7 Version: 1.4.28
     7Version: 1.4.29
    88Author: Guest Suite
    99Author URI: https://www.guest-suite.com
  • guestapp/trunk/CGuestApp.php

    r2932163 r3105239  
    9898                "ratings"               => isset($review->ratings) ? $review->ratings : new stdClass(),
    9999                "ratings_by_language"   => isset($review->ratings_by_language) ? $review->ratings_by_language : new stdClass(),
    100                 "comment_short"         => substr($review->comment, 0, 200) . (strlen($review->comment) > 200 ? "..." : ""),
     100                "comment_short"         => substr($review->comment, 0, 200) . (strlen((string) $review->comment) > 200 ? "..." : ""),
    101101                "comment_all"           => isset($review->comment) ? $review->comment : "",
    102102                "stay_type"             => isset($review->type) ? $review->type : "",
     
    246246    public function getJSONData($lang, $quantity, $original = null) {
    247247        // The widget can set two options related to the content. the first is lang, which defines the language of the reviews. The second is quantity, which defines the max amount of reviews shown
    248         $lang = strlen($lang) === 0 ? null : $lang;
    249         $lang_array = explode(",", $lang);
     248        $lang = strlen((string) $lang) === 0 ? null : $lang;
     249        $lang_array = explode(",", (string) $lang);
    250250        $returned = array();
    251251        $count = 0;
  • guestapp/trunk/README.txt

    r2932163 r3105239  
    33Tags: reviews, tourism, hospitality, reputation, hotel, camping, restaurant, ereputation
    44Requires at least: 3.1
    5 Tested up to: 6.2
    6 Stable tag: 1.4.28
     5Tested up to: 6.5.4
     6Stable tag: 1.4.29
    77Requires PHP: 5.2
    88License: GPLv2
     
    3232
    3333== Changelog ==
     34
     35= 1.4.29 =
     36* remove PHP 8.2 deprecation
    3437
    3538= 1.4.28 =
  • guestapp/trunk/guestapp.php

    r2932163 r3105239  
    55Plugin URI: https://wordpress.org/plugins/guestapp/
    66Description: Guest Suite Plugin
    7 Version: 1.4.28
     7Version: 1.4.29
    88Author: Guest Suite
    99Author URI: https://www.guest-suite.com
Note: See TracChangeset for help on using the changeset viewer.