[buddypress-trac] [BuddyPress Trac] #7506: friends_add_friend() should convert accepted arguments

buddypress-trac noreply at wordpress.org
Thu Apr 20 17:25:03 UTC 2017


#7506: friends_add_friend() should convert accepted arguments
--------------------------+------------------------------
 Reporter:  slaFFik       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Friends       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |
--------------------------+------------------------------

Comment (by henry.wright):

 When a string is provided, my vote goes to using `is_numeric()` over
 degrading gracefully. I've seen loose comparison used a lot in plugins so
 "1" and 1 will mean the same thing to many.

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


More information about the buddypress-trac mailing list