Plugin Directory

Changeset 2786787


Ignore:
Timestamp:
09/19/2022 07:32:43 AM (3 years ago)
Author:
motaword
Message:

version 1.3.7

Location:
motaword
Files:
5 edited
7 copied

Legend:

Unmodified
Added
Removed
  • motaword/tags/1.3.7/README.txt

    r2784458 r2786787  
    55Requires at least: 3.0.1
    66Tested up to: 5.9.3
    7 Stable tag: 1.3.6
     7Stable tag: 1.3.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6868== Changelog ==
    6969
     70= 1.3.7 =
     71* Fixed system folders issue in translation package and skipped unnecessary attributes for translation.
     72
    7073= 1.3.6 =
    7174* Fixed extraneous encoding.
  • motaword/tags/1.3.7/admin/class-motaword-admin.php

    r2781942 r2786787  
    942942        $isACFBlock = strpos($block['blockName'], 'acf/') === 0;
    943943        $attrs = $block['attrs'];
    944         return $this->array_filter_recursive($attrs, function ($value, $key) use($isACFBlock) {
     944        $skippedAttributes = ['type', 'url', 'className', 'providerNameSlug', 'align', 'sizeSlug', 'linkDestination'];
     945        return $this->array_filter_recursive($attrs, function ($value, $key) use($isACFBlock, $skippedAttributes) {
     946            if (in_array($key, $skippedAttributes)) {
     947                return false;
     948            }
    945949            if ($isACFBlock &&
    946950                (substr($key, 0, 1) === '_' || substr($value, 0, 6) === 'field_')) {
  • motaword/tags/1.3.7/includes/class-motaword.php

    r2784458 r2786787  
    9797     * @param string $pluginName
    9898     *
    99      * @version    1.3.6
     99     * @version    1.3.7
    100100     */
    101101    public function __construct($pluginName = 'motaword/motaword.php')
     
    103103
    104104        $this->motaword = 'motaword';
    105         $this->version = '1.3.6';
     105        $this->version = '1.3.7';
    106106
    107107        $this->setPluginFile($pluginName);
  • motaword/tags/1.3.7/motaword.php

    r2784458 r2786787  
    1616 * Plugin URI:        https://www.motaword.com/developer
    1717 * Description:       MotaWord plugin allows you to seamlessly submit your posts for translation to MotaWord.
    18  * Version:           1.3.6
     18 * Version:           1.3.7
    1919 * Author:            MotaWord Engineering <[email protected]>
    2020 * Author URI:        https://www.motaword.com/developer
  • motaword/tags/1.3.7/public/class-motaword-public.php

    r2784458 r2786787  
    161161        if (is_array($languageFolders) && count($languageFolders) > 0) {
    162162            $folder = $languageFolders[0];
     163            $folderPrefix = substr(basename($folder), 0, 1);
     164            // prevents using OS folders such as __MACOS in custom packages.
     165            if (($folderPrefix === '_' || $folderPrefix === '.') && $languageFolders[1]) {
     166                $folder = $languageFolders[1];
     167            }
    163168        }
    164169
  • motaword/trunk/README.txt

    r2784458 r2786787  
    55Requires at least: 3.0.1
    66Tested up to: 5.9.3
    7 Stable tag: 1.3.6
     7Stable tag: 1.3.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6868== Changelog ==
    6969
     70= 1.3.7 =
     71* Fixed system folders issue in translation package and skipped unnecessary attributes for translation.
     72
    7073= 1.3.6 =
    7174* Fixed extraneous encoding.
  • motaword/trunk/admin/class-motaword-admin.php

    r2781942 r2786787  
    942942        $isACFBlock = strpos($block['blockName'], 'acf/') === 0;
    943943        $attrs = $block['attrs'];
    944         return $this->array_filter_recursive($attrs, function ($value, $key) use($isACFBlock) {
     944        $skippedAttributes = ['type', 'url', 'className', 'providerNameSlug', 'align', 'sizeSlug', 'linkDestination'];
     945        return $this->array_filter_recursive($attrs, function ($value, $key) use($isACFBlock, $skippedAttributes) {
     946            if (in_array($key, $skippedAttributes)) {
     947                return false;
     948            }
    945949            if ($isACFBlock &&
    946950                (substr($key, 0, 1) === '_' || substr($value, 0, 6) === 'field_')) {
  • motaword/trunk/includes/class-motaword.php

    r2784458 r2786787  
    9797     * @param string $pluginName
    9898     *
    99      * @version    1.3.6
     99     * @version    1.3.7
    100100     */
    101101    public function __construct($pluginName = 'motaword/motaword.php')
     
    103103
    104104        $this->motaword = 'motaword';
    105         $this->version = '1.3.6';
     105        $this->version = '1.3.7';
    106106
    107107        $this->setPluginFile($pluginName);
  • motaword/trunk/motaword.php

    r2784458 r2786787  
    1616 * Plugin URI:        https://www.motaword.com/developer
    1717 * Description:       MotaWord plugin allows you to seamlessly submit your posts for translation to MotaWord.
    18  * Version:           1.3.6
     18 * Version:           1.3.7
    1919 * Author:            MotaWord Engineering <[email protected]>
    2020 * Author URI:        https://www.motaword.com/developer
  • motaword/trunk/public/class-motaword-public.php

    r2784458 r2786787  
    161161        if (is_array($languageFolders) && count($languageFolders) > 0) {
    162162            $folder = $languageFolders[0];
     163            $folderPrefix = substr(basename($folder), 0, 1);
     164            // prevents using OS folders such as __MACOS in custom packages.
     165            if (($folderPrefix === '_' || $folderPrefix === '.') && $languageFolders[1]) {
     166                $folder = $languageFolders[1];
     167            }
    163168        }
    164169
Note: See TracChangeset for help on using the changeset viewer.