for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Activity comment entity class.
*
* @package WordPoints_BuddyPress
* @since 1.0.0
*/
* Represents a BuddyPress activity item comment.
class WordPoints_BP_Entity_Activity_Comment
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
extends WordPoints_BP_Entity_Activity {
* @since 1.2.1
protected $bp_activity_type = 'activity_comment';
public function get_title() {
return __( 'Activity Comment', 'wordpoints-bp' );
}
// EOF
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.