Plugin Directory

Changeset 502327


Ignore:
Timestamp:
02/08/2012 04:50:06 PM (14 years ago)
Author:
manfer
Message:

Fixed for multisite wordpress.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contact-form-7-bwp-recaptcha-extension/trunk/includes/CF7bwpCAPT.class.php

    r486152 r502327  
    514514         */
    515515        function check_bwp_capt() {
    516             $this->is_bwp_capt_active = in_array(
    517                 'bwp-recaptcha/bwp-recaptcha.php',
    518                 apply_filters(
    519                     'active_plugins',
    520                     get_option( 'active_plugins' )
    521                 )
    522             );
     516            include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     517            $this->is_bwp_capt_active = is_plugin_active('bwp-recaptcha/bwp-recaptcha.php');
    523518            return $this->is_bwp_capt_active;
    524519        }
     
    528523         */
    529524        function check_cf7() {
    530             $this->is_cf7_active = in_array(
    531                 'contact-form-7/wp-contact-form-7.php',
    532                 apply_filters(
    533                     'active_plugins',
    534                     get_option( 'active_plugins' )
    535                 )
    536             );
     525            include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     526            $this->is_cf7_active = is_plugin_active('contact-form-7/wp-contact-form-7.php');
    537527            return $this->is_cf7_active;
    538528        }
Note: See TracChangeset for help on using the changeset viewer.