Plugin Directory

Changeset 2948148


Ignore:
Timestamp:
08/06/2023 12:33:48 PM (2 years ago)
Author:
proxymis
Message:

BuddyPress gender fix

Location:
html5-chat/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • html5-chat/trunk/index.php

    r2912829 r2948148  
    7676    static function display_notice()
    7777    {
    78         try {
    79             $jsonString = get_transient(self::$noticeName);
    80             $json = json_decode($jsonString);
     78        $jsonString = get_transient(self::$noticeName);
     79        $json = json_decode($jsonString);
     80        if(isset($json->message)) {
    8181            echo "<div id='message' class='updated notice is-dismissible'>{$json->message}</div>";
    82             delete_transient(self::$noticeName);
    83         }catch (Exception $e) {
    84 
    85         }
     82        }
     83        delete_transient(self::$noticeName);
    8684    }
    8785
     
    283281        global $bp;
    284282        $currentUser = wp_get_current_user();
     283        if (!isset($currentUser->data->ID)) {
     284            return 'male';
     285        }
    285286        $userid = ($currentUser->data->ID);
    286287        if ( function_exists( 'xprofile_get_field_data' ) ) {
  • html5-chat/trunk/readme.txt

    r2912829 r2948148  
    44Requires at least: 4.5
    55Tested up to: 6.2
    6 Stable tag: 1.07
     6Stable tag: 1.08
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.