|
3 | 3 | Plugin Name: BEA - Content Synchronization - Fusion
|
4 | 4 | Plugin URI: https://beapi.fr
|
5 | 5 | Description: Manage content synchronization across a WordPress multisite.
|
6 |
| - Version: 3.2 |
| 6 | + Version: 3.2.1 |
7 | 7 | Author: Be API
|
8 | 8 | Author URI: http://beapi.fr
|
9 | 9 | Network: true
|
10 | 10 | Required WP : 4.6
|
11 | 11 |
|
12 |
| - Copyright 2013-2017 - Be API Team (technique@beapi.fr) |
13 |
| - |
14 |
| - TODO : |
15 |
| - AJAX Taxo for Sync edition |
| 12 | + Copyright 2013-2018 - Be API Team (technique@beapi.fr) |
16 | 13 | */
|
17 | 14 |
|
18 | 15 | // Plugin constants
|
19 |
| -define( 'BEA_CSF_VERSION', '3.2' ); |
| 16 | +define( 'BEA_CSF_VERSION', '3.2.1' ); |
20 | 17 | define( 'BEA_CSF_OPTION', 'bea-content-sync-fusion' );
|
21 | 18 | define( 'BEA_CSF_CRON_QTY', 500 );
|
22 | 19 |
|
| 20 | +if ( ! defined( 'BEA_CSF_MEDIA_FEATURE' ) ) { |
| 21 | + define( 'BEA_CSF_MEDIA_FEATURE', true ); |
| 22 | +} |
| 23 | + |
23 | 24 | // Define the table relation variables
|
24 | 25 | if ( empty( $GLOBALS['wpdb']->bea_csf_relations ) ) {
|
25 | 26 | $GLOBALS['wpdb']->bea_csf_relations = $GLOBALS['wpdb']->base_prefix . 'bea_csf_relations';
|
|
34 | 35 | }
|
35 | 36 |
|
36 | 37 | if ( empty( $GLOBALS['wpdb']->bea_csf_queue_maintenance ) ) {
|
37 |
| - $GLOBALS['wpdb']->bea_csf_queue_maintenance = $GLOBALS['wpdb']->base_prefix . 'bea_csf_queue_maintenance'; |
38 |
| - $GLOBALS['wpdb']->ms_global_tables[] = 'bea_csf_queue_maintenance'; |
| 38 | + $GLOBALS['wpdb']->bea_csf_queue_maintenance = $GLOBALS['wpdb']->base_prefix . 'bea_csf_queue_maintenance'; |
| 39 | + $GLOBALS['wpdb']->ms_global_tables[] = 'bea_csf_queue_maintenance'; |
39 | 40 | }
|
40 | 41 |
|
41 | 42 | // Plugin URL and PATH
|
@@ -113,10 +114,14 @@ function init_bea_content_sync_fusion() {
|
113 | 114 | new BEA_CSF_Client();
|
114 | 115 | new BEA_CSF_Multisite();
|
115 | 116 | new BEA_CSF_Relations();
|
116 |
| - new BEA_CSF_Media(); |
117 | 117 | new BEA_CSF_SEO();
|
118 | 118 | new BEA_CSF_Query();
|
119 | 119 |
|
| 120 | + // Server optional - MEDIA |
| 121 | + if ( true === constant( 'BEA_CSF_MEDIA_FEATURE' ) ) { |
| 122 | + new BEA_CSF_Media(); |
| 123 | + } |
| 124 | + |
120 | 125 | // Addons
|
121 | 126 | new BEA_CSF_Addon_Post_Types_Order();
|
122 | 127 | new BEA_CSF_Addon_ACF();
|
|
0 commit comments