Plugin Directory

Changeset 2929793


Ignore:
Timestamp:
06/22/2023 04:56:05 PM (3 years ago)
Author:
memsource
Message:

Version 4.3.1

Location:
memsource-connector/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • memsource-connector/trunk/memsource.php

    r2907042 r2929793  
    55Plugin URI: https://support.phrase.com/hc/en-us/articles/5709657294620
    66Description: Localize WordPress websites with the help of professional translation tools: translation memories, terminology bases and quality checkers.
    7 Version: 4.3.0
     7Version: 4.3.1
    88Text Domain: memsource
    99Domain Path: /locale
     
    1818
    1919define('MEMSOURCE_PLUGIN_PATH', dirname(__FILE__));
    20 define('MEMSOURCE_PLUGIN_VERSION', '4.3.0');
     20define('MEMSOURCE_PLUGIN_VERSION', '4.3.1');
    2121define('MEMSOURCE_PLUGIN_DIR_URL', plugin_dir_url(__FILE__));
    2222
  • memsource-connector/trunk/readme.txt

    r2907042 r2929793  
    3333== Changelog ==
    3434
     35= 4.3.1 =
     36*Release Date - 22 Jun 2023*
     37
     38* Allowed shortcodes containing hyphens
     39* Added ACF PRO compatibility
     40
    3541= 4.3.0 =
    3642*Release Date - 2 May 2023*
  • memsource-connector/trunk/src/Page/ShortcodePage.php

    r2870027 r2929793  
    2626                var shortCode = jQuery('#shortCode').val();
    2727                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'); ?>');
    3030                }
    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'); ?>');
    3333                } else {
    3434                    jQuery('#add-short-code-form').submit();
  • memsource-connector/trunk/src/Service/TranslationWorkflowService.php

    r2870027 r2929793  
    194194    public function isAcfEnabled(): bool
    195195    {
    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);
    197198    }
    198199}
Note: See TracChangeset for help on using the changeset viewer.