-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconnections.php
100 lines (87 loc) · 2.93 KB
/
connections.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
/**
* @package Connections Business Directory
* @category Core
* @author Steven A. Zahm
* @license GPL-2.0+
* @link https://connections-pro.com
* @copyright 2024 Steven A. Zahm
*
* @wordpress-plugin
* Plugin Name: Connections Business Directory
* Plugin URI: https://connections-pro.com/
* Description: A business directory and address book manager.
* Version: 10.4.66
* Requires at least: 5.8
* Requires PHP: 7.0
* Author: Steven A. Zahm
* Author URI: https://connections-pro.com/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: connections
* Domain Path: /languages
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
require __DIR__ . '/includes/class.requirements-check.php';
require __DIR__ . '/includes/class.text-domain.php';
/**
* NOTE: Priority set at -1 to allow extensions to use the `connections` text domain. Since extensions are
* generally loaded on the `plugins_loaded` action hook, any strings with the `connections` text
* domain will be merged into it. The purpose is to allow the extensions to use strings known to
* in the core plugin to reuse those strings and benefit if they are already translated.
*
* @since 8.35 Set load priority at 1 to support WP Globus.
*/
cnText_Domain::register( 'connections', plugin_basename( __FILE__ ), 1 );
$check = new cnRequirements_Check(
array(
'name' => 'Connections Business Directory',
'basename' => plugin_basename( __FILE__ ),
'file' => __FILE__,
'requirements' => array(
'php' => array(
'min' => '7.0', // 5.6.20 -- The minimum PHP version that WordPress 5.2 requires.
'max' => '8.3', // 7.4
),
'wp' => array(
'min' => '5.8', // 4.7.12
'max' => '6.7',
),
),
)
);
if ( $check->passes() ) {
include __DIR__ . '/includes/class.connections-directory.php';
// Start Connections.
if ( class_exists( 'Connections_Directory' ) ) {
/**
* The main function responsible for returning the Connections instance
* to functions everywhere.
*
* Use this function like you would a global variable, except without needing
* to declare the global.
*
* NOTE: Declaring an instance in the global @var $connections Connections_Directory to provide backward
* compatibility with many internal methods, template and extensions that expect it.
*
* Example: <?php $instance = Connections_Directory(); ?>
*
* @access public
* @since 0.7.9
*
* @global $connections
*
* @return Connections_Directory
*/
function Connections_Directory() {
global $connections;
$connections = Connections_Directory::instance();
return $connections;
}
Connections_Directory::instance( __FILE__ );
Connections_Directory\Utility\_deprecated\_doAction( 'cn_loaded', array(), '10.4.39', 'Connections_Directory/Loaded' );
}
}