Changeset 2948148
- Timestamp:
- 08/06/2023 12:33:48 PM (2 years ago)
- Location:
- html5-chat/trunk
- Files:
-
- 2 edited
-
index.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
html5-chat/trunk/index.php
r2912829 r2948148 76 76 static function display_notice() 77 77 { 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)) { 81 81 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); 86 84 } 87 85 … … 283 281 global $bp; 284 282 $currentUser = wp_get_current_user(); 283 if (!isset($currentUser->data->ID)) { 284 return 'male'; 285 } 285 286 $userid = ($currentUser->data->ID); 286 287 if ( function_exists( 'xprofile_get_field_data' ) ) { -
html5-chat/trunk/readme.txt
r2912829 r2948148 4 4 Requires at least: 4.5 5 5 Tested up to: 6.2 6 Stable tag: 1.0 76 Stable tag: 1.08 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.