PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.2.0
Forumax – AI Powered Advanced Community Forum Plugin v2.2.0
2.5.0 2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 All 30 releases
← All changes | includes/features/bbp_voting.php +5 -5 1.2.9 → 2.2.0 View file →
@@ -7,15 +7,15 @@
7 7 $this->load_functions();
8 8 }
9 9
10 10 public function include_files() {
11 - define( 'BBPC_VOTE_PATH', plugin_dir_path( __FILE__ ) . 'bbp_voting/' );
11 + define( 'FORUMAX_VOTE_PATH', plugin_dir_path( __FILE__ ) . 'bbp_voting/' );
12 12
13 13 // The plugin basename, "folder/file.php"
14 14 $plugin = plugin_basename( __FILE__ );
15 15
16 16 // Helpers are helpful.
17 - require_once BBPC_VOTE_PATH . 'helpers.php';
17 + require_once FORUMAX_VOTE_PATH . 'helpers.php';
18 18
19 19 }
20 20
21 21 public function load_functions() {
@@ -21,14 +21,14 @@
21 21 public function load_functions() {
22 22 // Require only the appropriate files.
23 23 if ( wp_doing_ajax() ) {
24 24 // Ajax.
25 - require_once BBPC_VOTE_PATH . 'ajax.php';
25 + require_once FORUMAX_VOTE_PATH . 'ajax.php';
26 26 } elseif ( is_admin() ) {
27 - require_once BBPC_VOTE_PATH . 'metabox.php';
27 + require_once FORUMAX_VOTE_PATH . 'metabox.php';
28 28 } else {
29 29 // Frontend.
30 - require_once BBPC_VOTE_PATH . 'frontend.php';
30 + require_once FORUMAX_VOTE_PATH . 'frontend.php';
31 31 }
32 32
33 33 }
34 34 }