[buddypress-trac] [BuddyPress Trac] #7234: Implement get_object_by_id() method in message factory

buddypress-trac noreply at wordpress.org
Mon Aug 29 14:33:21 UTC 2016


#7234: Implement get_object_by_id() method in message factory
------------------------------+------------------------------
 Reporter:  jdgrimes          |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |
------------------------------+------------------------------

Comment (by jdgrimes):

 [attachment:7234.3.diff] updates the `create_object()` method to create a
 sender and recipient on the fly if these values are empty. I think that
 this is the correct behavior for the factory, because if either of these
 values are empty the message won't be created by `messages_new_message()`.

 Note that the sender does default to the current user, but this value is
 not always set during the unit tests (actually, I think that it is unset
 by default as of now).

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


More information about the buddypress-trac mailing list