Changeset 12236 for sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/user.php
- Timestamp:
- 11/10/2022 11:34:38 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/user.php
r12233 r12236 45 45 global $authordata; 46 46 47 $user_id = $authordata->ID; 47 $user_id = $authordata->ID ?? 0; 48 } 49 50 if ( ! $user_id ) { 51 return 0; 48 52 } 49 53 … … 75 79 global $authordata; 76 80 77 $user_id = $authordata->ID; 81 $user_id = $authordata->ID ?? 0; 82 } 83 84 if ( ! $user_id ) { 85 return []; 78 86 } 79 87
Note: See TracChangeset
for help on using the changeset viewer.