Skip to:
Content

BuddyPress.org

Opened 5 months ago

Last modified 5 months ago

#8478 new enhancement

Do not retrieve Akismet key if Akismet is not loaded

Reported by: shawfactor Owned by:
Milestone: Up Next Priority: low
Severity: normal Version:
Component: Core Keywords:
Cc:

Description

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.

Change History (2)

#1 @slaFFik
5 months ago

  • Milestone changed from Awaiting Review to Up Next
  • Type changed from defect (bug) to enhancement

#2 @slaFFik
5 months ago

  • Summary changed from minor fix to bp-activity-component.php to Do not retrieve Akismet key if Akismet is not loaded
Note: See TracTickets for help on using tickets.