Added multisite support
This commit is contained in:
parent
574f670ee0
commit
9318732f07
@ -82,5 +82,6 @@ function kompass_load_ajax_content() {
|
|||||||
|
|
||||||
$loginHandler = new LoginHandler();
|
$loginHandler = new LoginHandler();
|
||||||
new BdpVersionChecker();
|
new BdpVersionChecker();
|
||||||
|
|
||||||
#add_filter( 'plugins_api', array( $class, 'info' ), 20, 3 );
|
#add_filter( 'plugins_api', array( $class, 'info' ), 20, 3 );
|
||||||
require_once dirname(__FILE__) . '/action_caller.php';
|
require_once dirname(__FILE__) . '/action_caller.php';
|
||||||
|
@ -11,7 +11,7 @@ class BdpVersionChecker
|
|||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$plugin_data = get_plugin_data( BDP_LV_STARTUP_FILE );
|
$plugin_data = get_plugin_data( BDP_LV_STARTUP_FILE, true, false );
|
||||||
$this->plugin_slug = BDP_LV_PLUGIN_SLUG;
|
$this->plugin_slug = BDP_LV_PLUGIN_SLUG;
|
||||||
$this->updateUrl = $plugin_data['UpdateURI'] . '/info.json';
|
$this->updateUrl = $plugin_data['UpdateURI'] . '/info.json';
|
||||||
$this->version = $plugin_data['Version'];
|
$this->version = $plugin_data['Version'];
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function _kompass_limit_logins_settings_radio_callback(array $args)
|
function _kompass_limit_logins_settings_radio_callback(array $args)
|
||||||
{
|
{
|
||||||
kompass_print_radio($args['setting']);
|
kompass_print_radio($args['setting']);
|
||||||
@ -11,8 +8,11 @@ function _kompass_limit_logins_settings_checkbox_callback(array $args) {
|
|||||||
kompass_print_checkbox($args['setting']);
|
kompass_print_checkbox($args['setting']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!defined('SECURE_AUTH_COOKIE') && !defined('AUTH_COOKIE')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
bdp_kompass_load_plugin_textdomain();
|
bdp_kompass_load_plugin_textdomain();
|
||||||
|
|
||||||
add_settings_section(
|
add_settings_section(
|
||||||
'custom_settings_section',
|
'custom_settings_section',
|
||||||
__('Options', BDP_LV_PLUGIN_SLUG),
|
__('Options', BDP_LV_PLUGIN_SLUG),
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
if (!defined('SECURE_AUTH_COOKIE') && !defined('AUTH_COOKIE')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
add_settings_section(
|
add_settings_section(
|
||||||
'custom_settings_section',
|
'custom_settings_section',
|
||||||
__('Calendar settings', BDP_LV_PLUGIN_SLUG),
|
__('Calendar settings', BDP_LV_PLUGIN_SLUG),
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
if (!defined('SECURE_AUTH_COOKIE') && !defined('AUTH_COOKIE')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
add_settings_section(
|
add_settings_section(
|
||||||
'custom_settings_section',
|
'custom_settings_section',
|
||||||
|
Loading…
Reference in New Issue
Block a user