Plugin Directory

Changeset 3294657


Ignore:
Timestamp:
05/16/2025 09:24:17 AM (11 months ago)
Author:
seowriting
Message:

New version of plugin: 1.11.14

Location:
seowriting
Files:
4 edited
11 copied

Legend:

Unmodified
Added
Removed
  • seowriting/tags/1.11.14/classes/html2elementor.php

    r3294224 r3294657  
    2626
    2727    /**
     28     * @var string
     29     */
     30    private $pref;
     31
     32    /**
    2833     * @var bool
    2934     */
     
    4348        $this->html = '<?xml encoding="utf-8" ?><html><body>' . str_replace("\n", " ", $html) . '</body></html>';
    4449        $this->is_super_page = strpos($this->html, 'styled-container') !== false;
     50        $this->pref = substr(md5((string)microtime(true)), 0, 6);
    4551    }
    4652
     
    8187
    8288    /**
    83      * @return int|string
    84      */
    85     private function id($as_int = false)
    86     {
    87         return $as_int ? ++$this->id : (string)++$this->id;
     89     * @return string
     90     */
     91    private function id()
     92    {
     93        return $this->pref . (string)++$this->id;
    8894    }
    8995
     
    208214                $settings['image'] = [
    209215                    'url' => $this->replace($node->getAttribute('src')),
    210                     'id' => $this->id(true),
     216                    'id' => $this->id(),
    211217                    'size' => '',
    212218                    'alt' => trim($node->getAttribute('alt'))
  • seowriting/tags/1.11.14/readme.txt

    r3294226 r3294657  
    55Requires at least: 4.9
    66Requires PHP: 5.6.20
    7 Stable tag: 1.11.13
     7Stable tag: 1.11.14
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2222
    2323== Changelog ==
     24
     25= 1.11.14 (2025/05/16) =
     26
     27Fix:
     28* Elementor image block
    2429
    2530= 1.11.13 (2025/05/15) =
  • seowriting/tags/1.11.14/seowriting.php

    r3294224 r3294657  
    99 * Plugin Name:       SEOWriting
    1010 * Description:       SEOWriting - AI Writing Tool Plugin For Text Generation
    11  * Version:           1.11.13
     11 * Version:           1.11.14
    1212 * Author:            SEOWriting
    1313 * Author URI:        https://seowriting.ai/?utm_source=wp_plugin
     
    2828        public $plugin_slug;
    2929        public $plugin_path;
    30         public $version = '1.11.13';
     30        public $version = '1.11.14';
    3131        /**
    3232         * @var \SEOWriting\APIClient|null
     
    797797
    798798                    $attachment_id = 0;
    799                     if (in_array($path, $images)) {
    800                         $attachment_id = array_search($path, $images);
     799                    if (isset($images[$path])) {
     800                        $attachment_id = $images[$path];
    801801                    } elseif ($file = $api->loadImage($path, $alt)) {
    802802                        $id = media_handle_sideload($file, $post_id);
     
    810810                        } else {
    811811                            $attachment_id = $id;
    812                             $images[$id] = $path;
     812                            $images[$path] = $id;
    813813
    814814                            if (strlen($alt) > 0) {
  • seowriting/tags/1.11.14/utils.php

    r3293374 r3294657  
    11<?php
     2
     3$dev = __DIR__ . '/dev.php';
     4define('SW_IS_DEV', is_readable($dev));
     5if (SW_IS_DEV) {
     6    include_once $dev;
     7}
    28
    39function seowriting_add_file_to_zip($dir, $zip, $rootPath = '')
  • seowriting/trunk/classes/html2elementor.php

    r3294224 r3294657  
    2626
    2727    /**
     28     * @var string
     29     */
     30    private $pref;
     31
     32    /**
    2833     * @var bool
    2934     */
     
    4348        $this->html = '<?xml encoding="utf-8" ?><html><body>' . str_replace("\n", " ", $html) . '</body></html>';
    4449        $this->is_super_page = strpos($this->html, 'styled-container') !== false;
     50        $this->pref = substr(md5((string)microtime(true)), 0, 6);
    4551    }
    4652
     
    8187
    8288    /**
    83      * @return int|string
    84      */
    85     private function id($as_int = false)
    86     {
    87         return $as_int ? ++$this->id : (string)++$this->id;
     89     * @return string
     90     */
     91    private function id()
     92    {
     93        return $this->pref . (string)++$this->id;
    8894    }
    8995
     
    208214                $settings['image'] = [
    209215                    'url' => $this->replace($node->getAttribute('src')),
    210                     'id' => $this->id(true),
     216                    'id' => $this->id(),
    211217                    'size' => '',
    212218                    'alt' => trim($node->getAttribute('alt'))
  • seowriting/trunk/readme.txt

    r3294226 r3294657  
    55Requires at least: 4.9
    66Requires PHP: 5.6.20
    7 Stable tag: 1.11.13
     7Stable tag: 1.11.14
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2222
    2323== Changelog ==
     24
     25= 1.11.14 (2025/05/16) =
     26
     27Fix:
     28* Elementor image block
    2429
    2530= 1.11.13 (2025/05/15) =
  • seowriting/trunk/seowriting.php

    r3294224 r3294657  
    99 * Plugin Name:       SEOWriting
    1010 * Description:       SEOWriting - AI Writing Tool Plugin For Text Generation
    11  * Version:           1.11.13
     11 * Version:           1.11.14
    1212 * Author:            SEOWriting
    1313 * Author URI:        https://seowriting.ai/?utm_source=wp_plugin
     
    2828        public $plugin_slug;
    2929        public $plugin_path;
    30         public $version = '1.11.13';
     30        public $version = '1.11.14';
    3131        /**
    3232         * @var \SEOWriting\APIClient|null
     
    797797
    798798                    $attachment_id = 0;
    799                     if (in_array($path, $images)) {
    800                         $attachment_id = array_search($path, $images);
     799                    if (isset($images[$path])) {
     800                        $attachment_id = $images[$path];
    801801                    } elseif ($file = $api->loadImage($path, $alt)) {
    802802                        $id = media_handle_sideload($file, $post_id);
     
    810810                        } else {
    811811                            $attachment_id = $id;
    812                             $images[$id] = $path;
     812                            $images[$path] = $id;
    813813
    814814                            if (strlen($alt) > 0) {
  • seowriting/trunk/utils.php

    r3293374 r3294657  
    11<?php
     2
     3$dev = __DIR__ . '/dev.php';
     4define('SW_IS_DEV', is_readable($dev));
     5if (SW_IS_DEV) {
     6    include_once $dev;
     7}
    28
    39function seowriting_add_file_to_zip($dir, $zip, $rootPath = '')
Note: See TracChangeset for help on using the changeset viewer.