PluginProbe ʕ •ᴥ•ʔ
WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets / 3.2.2
WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets v3.2.2
4.1.1 3.9.5 3.9.6 4.0.0 4.0.1 4.1.0 trunk 2.12 2.13 2.14 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.5.7 3.5.8 3.5.9 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.6.9 3.7.0 3.7.1 3.7.2 3.7.3 3.7.3-beta-1.0 3.7.4 3.7.4-beta-1.0 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8.0 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4
wp-all-import / actions / admin_notices.php
wp-all-import / actions Last commit date
admin_head.php 11 years ago admin_init.php 11 years ago admin_menu.php 11 years ago admin_notices.php 11 years ago delete_post.php 11 years ago plugins_loaded.php 11 years ago wp.php 11 years ago wp_ajax_auto_detect_cf.php 11 years ago wp_ajax_auto_detect_sf.php 11 years ago wp_ajax_import_failed.php 11 years ago wp_ajax_nested_merge.php 11 years ago wp_ajax_nested_xpath.php 11 years ago wp_ajax_parse_nested_file.php 11 years ago wp_ajax_test_images.php 11 years ago wp_ajax_unmerge_file.php 11 years ago wp_loaded.php 11 years ago
admin_notices.php
136 lines
1 <?php
2
3 function pmxi_admin_notices() {
4 // notify user if history folder is not writable
5 $uploads = wp_upload_dir();
6
7 // compare woocommerce add-on version
8 if ( class_exists( 'PMWI_Plugin' ) and ( defined('PMWI_VERSION') and version_compare(PMWI_VERSION, '2.0.0-beta1') < 0 and PMWI_EDITION == 'paid' or defined('PMWI_FREE_VERSION') and version_compare(PMWI_FREE_VERSION, '1.2.0') < 0 and PMWI_EDITION == 'free') ) {
9 ?>
10 <div class="error"><p>
11 <?php printf(
12 __('<b>%s Plugin</b>: Please update your WP All Import WooCommerce add-on to the latest version</a>', 'pmwi_plugin'),
13 PMWI_Plugin::getInstance()->getName()
14 ) ?>
15 </p></div>
16 <?php
17
18 if (defined('PMWI_EDITION') and PMWI_EDITION == 'paid')
19 {
20 deactivate_plugins( PMWI_ROOT_DIR . '/plugin.php');
21 }
22 else
23 {
24 deactivate_plugins( PMWI_FREE_ROOT_DIR . '/plugin.php');
25 }
26
27 }
28
29 // compare ACF add-on
30 if ( class_exists( 'PMAI_Plugin' ) and defined('PMAI_VERSION') and version_compare(PMAI_VERSION, '3.0.0-beta1') < 0 and PMAI_EDITION == 'paid' ) {
31 ?>
32 <div class="error"><p>
33 <?php printf(
34 __('<b>%s Plugin</b>: Please update your WP All Import ACF add-on to the latest version</a>', 'pmwi_plugin'),
35 PMAI_Plugin::getInstance()->getName()
36 ) ?>
37 </p></div>
38 <?php
39
40 if (defined('PMAI_EDITION') and PMAI_EDITION == 'paid')
41 {
42 deactivate_plugins( PMAI_ROOT_DIR . '/plugin.php');
43 }
44 }
45
46 // compare Linkcloak add-on
47 if ( class_exists( 'PMLCA_Plugin' ) and defined('PMLCA_VERSION') and version_compare(PMLCA_VERSION, '1.0.0-beta1') < 0 and PMLCA_EDITION == 'paid' ) {
48 ?>
49 <div class="error"><p>
50 <?php printf(
51 __('<b>%s Plugin</b>: Please update your WP All Import Linkcloak add-on to the latest version</a>', 'pmwi_plugin'),
52 PMLCA_Plugin::getInstance()->getName()
53 ) ?>
54 </p></div>
55 <?php
56
57 if (defined('PMLCA_EDITION') and PMLCA_EDITION == 'paid')
58 {
59 deactivate_plugins( PMLCA_ROOT_DIR . '/plugin.php');
60 }
61 }
62
63 // compare User add-on
64 if ( class_exists( 'PMUI_Plugin' ) and defined('PMUI_VERSION') and version_compare(PMUI_VERSION, '1.0.0-beta1') < 0 and PMUI_EDITION == 'paid' ) {
65 ?>
66 <div class="error"><p>
67 <?php printf(
68 __('<b>%s Plugin</b>: Please update your WP All Import User add-on to the latest version</a>', 'pmwi_plugin'),
69 PMUI_Plugin::getInstance()->getName()
70 ) ?>
71 </p></div>
72 <?php
73
74 if (defined('PMUI_EDITION') and PMUI_EDITION == 'paid')
75 {
76 deactivate_plugins( PMUI_ROOT_DIR . '/plugin.php');
77 }
78 }
79
80 // compare WPML add-on
81 if ( class_exists( 'PMLI_Plugin' ) and defined('PMLI_VERSION') and version_compare(PMLI_VERSION, '1.0.0-beta1') < 0 and PMLI_EDITION == 'paid' ) {
82 ?>
83 <div class="error"><p>
84 <?php printf(
85 __('<b>%s Plugin</b>: Please update your WP All Import WPML add-on to the latest version</a>', 'pmwi_plugin'),
86 PMLI_Plugin::getInstance()->getName()
87 ) ?>
88 </p></div>
89 <?php
90
91 if (defined('PMLI_EDITION') and PMLI_EDITION == 'paid')
92 {
93 deactivate_plugins( PMLI_ROOT_DIR . '/plugin.php');
94 }
95 }
96
97 $input = new PMXI_Input();
98 $messages = $input->get('pmxi_nt', array());
99 if ($messages) {
100 is_array($messages) or $messages = array($messages);
101 foreach ($messages as $type => $m) {
102 in_array((string)$type, array('updated', 'error')) or $type = 'updated';
103 ?>
104 <div class="<?php echo $type ?>"><p><?php echo $m ?></p></div>
105 <?php
106 }
107 }
108 $warnings = $input->get('warnings', array());
109 if ($warnings) {
110 is_array($warnings) or $warnings = explode(',', $warnings);
111 foreach ($warnings as $code) {
112 switch ($code) {
113 case 1:
114 $m = __('<strong>Warning:</strong> your title is blank.', 'pmxi_plugin');
115 break;
116 case 2:
117 $m = __('<strong>Warning:</strong> your content is blank.', 'pmxi_plugin');
118 break;
119 case 3:
120 $m = __('<strong>Warning:</strong> You must <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=images" target="_blank">upgrade to the professional edition of WP All Import</a> to import images. The settings you configured in the images section will be ignored.', 'pmxi_plugin');
121 break;
122 case 4:
123 $m = __('<strong>Warning:</strong> You must <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=custom-fields" target="_blank">upgrade to the professional edition of WP All Import</a> to import data to Custom Fields. The settings you configured in the Custom Fields section will be ignored.', 'pmxi_plugin');
124 break;
125 default:
126 $m = false;
127 break;
128 }
129 if ($m):
130 ?>
131 <div class="error"><p><?php echo $m ?></p></div>
132 <?php
133 endif;
134 }
135 }
136 }