[buddypress-trac] [BuddyPress Trac] #8478: minor fix to bp-activity-component.php
buddypress-trac
noreply at wordpress.org
Thu May 27 05:00:48 UTC 2021
#8478: minor fix to bp-activity-component.php
--------------------------+-----------------------------
Reporter: shawfactor | Owner: (none)
Type: defect (bug) | Status: new
Priority: low | Milestone: Awaiting Review
Component: Core | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
on line 69 is the check $akismet_key = bp_get_option( 'wordpress_api_key'
);
this should come after the defined( 'AKISMET_VERSION' ) check that follows
it
As right now it triggers an unneccesary database query if the option does
not exist or is not set to autload. That query is not required at all if
akismet is not active.
ore broadly I think akismet support should be removed entirely (it is
rubbish) but if it must stay in then the small change is a small
improvement.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8478>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list