PluginProbe
Import WP – CSV & XML Import Export for WordPress / 2.15.2
Import WP – CSV & XML Import Export for WordPress v2.15.2
2.15.2 2.15.1 2.15.0 2.14.24 2.14.23 2.7.0 2.7.1 2.7.10 2.7.11 2.7.12 2.7.13 2.7.14 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.9.0 All 145 releases
← All changes | class/Common/Importer/Permission/Permission.php +6 -0 2.14.23 → 2.15.2 View file →
@@ -27,8 +27,14 @@
27 27 throw new MapperException(sprintf(__('Not enough permissions to %s record.', 'jc-importer'), 'import'));
28 28 }
29 29
30 30 if (false === $this->allowed_method($permission_method)) {
31 + if ('create' === $permission_method) {
32 + throw new MapperException(__('Not enough permissions to create record. No existing record matched the unique identifier, and Create is disabled. Enable Create, or check that the unique identifier can find the existing record.', 'jc-importer'));
33 + }
34 + if ('update' === $permission_method) {
35 + throw new MapperException(__('Not enough permissions to update record. An existing record matched the unique identifier, and Update is disabled. Enable Update if you intended to modify existing records.', 'jc-importer'));
36 + }
31 37 throw new MapperException(sprintf(__('Not enough permissions to %s record.', 'jc-importer'), $permission_method));
32 38 }
33 39
34 40 $permission_data = $this->importer_model->getPermission($permission_method);