Changeset 2929793
- Timestamp:
- 06/22/2023 04:56:05 PM (3 years ago)
- Location:
- memsource-connector/trunk
- Files:
-
- 4 edited
-
memsource.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
src/Page/ShortcodePage.php (modified) (1 diff)
-
src/Service/TranslationWorkflowService.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
memsource-connector/trunk/memsource.php
r2907042 r2929793 5 5 Plugin URI: https://support.phrase.com/hc/en-us/articles/5709657294620 6 6 Description: Localize WordPress websites with the help of professional translation tools: translation memories, terminology bases and quality checkers. 7 Version: 4.3. 07 Version: 4.3.1 8 8 Text Domain: memsource 9 9 Domain Path: /locale … … 18 18 19 19 define('MEMSOURCE_PLUGIN_PATH', dirname(__FILE__)); 20 define('MEMSOURCE_PLUGIN_VERSION', '4.3. 0');20 define('MEMSOURCE_PLUGIN_VERSION', '4.3.1'); 21 21 define('MEMSOURCE_PLUGIN_DIR_URL', plugin_dir_url(__FILE__)); 22 22 -
memsource-connector/trunk/readme.txt
r2907042 r2929793 33 33 == Changelog == 34 34 35 = 4.3.1 = 36 *Release Date - 22 Jun 2023* 37 38 * Allowed shortcodes containing hyphens 39 * Added ACF PRO compatibility 40 35 41 = 4.3.0 = 36 42 *Release Date - 2 May 2023* -
memsource-connector/trunk/src/Page/ShortcodePage.php
r2870027 r2929793 26 26 var shortCode = jQuery('#shortCode').val(); 27 27 var attributes = jQuery('#attributes').val(); 28 if (!/^[a-zA-Z_ ]+$/.test(shortCode)) {29 alert('<?php _e('Invalid shortcode. Please make sure it contains only letters and underscores.', 'memsource'); ?>');28 if (!/^[a-zA-Z_-]+$/.test(shortCode)) { 29 alert('<?php _e('Invalid shortcode. Please make sure it contains only letters, underscores and hyphens.', 'memsource'); ?>'); 30 30 } 31 else if (attributes && !/^[a-zA-Z0-9_, ]+$/.test(attributes)) {32 alert('<?php _e('Invalid attributes. Please make sure it contains only letters, numbers and underscores.', 'memsource'); ?>');31 else if (attributes && !/^[a-zA-Z0-9_,-]+$/.test(attributes)) { 32 alert('<?php _e('Invalid attributes. Please make sure it contains only letters, numbers, underscores and hyphens.', 'memsource'); ?>'); 33 33 } else { 34 34 jQuery('#add-short-code-form').submit(); -
memsource-connector/trunk/src/Service/TranslationWorkflowService.php
r2870027 r2929793 194 194 public function isAcfEnabled(): bool 195 195 { 196 return in_array('advanced-custom-fields/acf.php', get_option('active_plugins'), true); 196 return in_array('advanced-custom-fields/acf.php', get_option('active_plugins'), true) || 197 in_array('advanced-custom-fields-pro/acf.php', get_option('active_plugins'), true); 197 198 } 198 199 }
Note: See TracChangeset
for help on using the changeset viewer.