[buddypress-trac] [BuddyPress Trac] #8236: `empty()` check for activity content after kses filtering

buddypress-trac noreply at wordpress.org
Tue Feb 18 18:13:22 UTC 2020


#8236: `empty()` check for activity content after kses filtering
--------------------------+------------------------------
 Reporter:  oztaser       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Activity      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by imath):

 You're welcome :) what about adding a check to the activity type ? eg:

 `if ( 'activity_update' === $this->type && !  $this->content ) {}`

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


More information about the buddypress-trac mailing list