[buddypress-trac] [BuddyPress Trac] #9175: Unable to send "0" in messages through REST API

buddypress-trac noreply at wordpress.org
Thu Jun 6 12:52:23 UTC 2024


#9175: Unable to send "0" in messages through REST API
--------------------------+--------------------------
 Reporter:  niftythree    |       Owner:  espellcaste
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Up Next
Component:  REST API      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------------
Changes (by espellcaste):

 * milestone:  Awaiting Review => Up Next


Comment:

 That's a good catch, actually.

 In PHP, `empty("0")` returns `true` while `empty("00")` does not. I can
 update this to better check what's truly empty.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9175#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list