Changeset 3294657
- Timestamp:
- 05/16/2025 09:24:17 AM (11 months ago)
- Location:
- seowriting
- Files:
-
- 4 edited
- 11 copied
-
tags/1.11.14 (copied) (copied from seowriting/trunk)
-
tags/1.11.14/assets/css/admin.css (copied) (copied from seowriting/trunk/assets/css/admin.css)
-
tags/1.11.14/classes/api-client.php (copied) (copied from seowriting/trunk/classes/api-client.php)
-
tags/1.11.14/classes/html2elementor.php (copied) (copied from seowriting/trunk/classes/html2elementor.php) (4 diffs)
-
tags/1.11.14/classes/post-meta.php (copied) (copied from seowriting/trunk/classes/post-meta.php)
-
tags/1.11.14/classes/settings-form.php (copied) (copied from seowriting/trunk/classes/settings-form.php)
-
tags/1.11.14/default.css (copied) (copied from seowriting/trunk/default.css)
-
tags/1.11.14/readme.txt (copied) (copied from seowriting/trunk/readme.txt) (2 diffs)
-
tags/1.11.14/seowriting.php (copied) (copied from seowriting/trunk/seowriting.php) (4 diffs)
-
tags/1.11.14/tpl/settings/settings.tpl.php (copied) (copied from seowriting/trunk/tpl/settings/settings.tpl.php)
-
tags/1.11.14/utils.php (copied) (copied from seowriting/trunk/utils.php) (1 diff)
-
trunk/classes/html2elementor.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/seowriting.php (modified) (4 diffs)
-
trunk/utils.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
seowriting/tags/1.11.14/classes/html2elementor.php
r3294224 r3294657 26 26 27 27 /** 28 * @var string 29 */ 30 private $pref; 31 32 /** 28 33 * @var bool 29 34 */ … … 43 48 $this->html = '<?xml encoding="utf-8" ?><html><body>' . str_replace("\n", " ", $html) . '</body></html>'; 44 49 $this->is_super_page = strpos($this->html, 'styled-container') !== false; 50 $this->pref = substr(md5((string)microtime(true)), 0, 6); 45 51 } 46 52 … … 81 87 82 88 /** 83 * @return int|string84 */ 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; 88 94 } 89 95 … … 208 214 $settings['image'] = [ 209 215 'url' => $this->replace($node->getAttribute('src')), 210 'id' => $this->id( true),216 'id' => $this->id(), 211 217 'size' => '', 212 218 'alt' => trim($node->getAttribute('alt')) -
seowriting/tags/1.11.14/readme.txt
r3294226 r3294657 5 5 Requires at least: 4.9 6 6 Requires PHP: 5.6.20 7 Stable tag: 1.11.1 37 Stable tag: 1.11.14 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 22 22 23 23 == Changelog == 24 25 = 1.11.14 (2025/05/16) = 26 27 Fix: 28 * Elementor image block 24 29 25 30 = 1.11.13 (2025/05/15) = -
seowriting/tags/1.11.14/seowriting.php
r3294224 r3294657 9 9 * Plugin Name: SEOWriting 10 10 * Description: SEOWriting - AI Writing Tool Plugin For Text Generation 11 * Version: 1.11.1 311 * Version: 1.11.14 12 12 * Author: SEOWriting 13 13 * Author URI: https://seowriting.ai/?utm_source=wp_plugin … … 28 28 public $plugin_slug; 29 29 public $plugin_path; 30 public $version = '1.11.1 3';30 public $version = '1.11.14'; 31 31 /** 32 32 * @var \SEOWriting\APIClient|null … … 797 797 798 798 $attachment_id = 0; 799 if (i n_array($path, $images)) {800 $attachment_id = array_search($path, $images);799 if (isset($images[$path])) { 800 $attachment_id = $images[$path]; 801 801 } elseif ($file = $api->loadImage($path, $alt)) { 802 802 $id = media_handle_sideload($file, $post_id); … … 810 810 } else { 811 811 $attachment_id = $id; 812 $images[$ id] = $path;812 $images[$path] = $id; 813 813 814 814 if (strlen($alt) > 0) { -
seowriting/tags/1.11.14/utils.php
r3293374 r3294657 1 1 <?php 2 3 $dev = __DIR__ . '/dev.php'; 4 define('SW_IS_DEV', is_readable($dev)); 5 if (SW_IS_DEV) { 6 include_once $dev; 7 } 2 8 3 9 function seowriting_add_file_to_zip($dir, $zip, $rootPath = '') -
seowriting/trunk/classes/html2elementor.php
r3294224 r3294657 26 26 27 27 /** 28 * @var string 29 */ 30 private $pref; 31 32 /** 28 33 * @var bool 29 34 */ … … 43 48 $this->html = '<?xml encoding="utf-8" ?><html><body>' . str_replace("\n", " ", $html) . '</body></html>'; 44 49 $this->is_super_page = strpos($this->html, 'styled-container') !== false; 50 $this->pref = substr(md5((string)microtime(true)), 0, 6); 45 51 } 46 52 … … 81 87 82 88 /** 83 * @return int|string84 */ 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; 88 94 } 89 95 … … 208 214 $settings['image'] = [ 209 215 'url' => $this->replace($node->getAttribute('src')), 210 'id' => $this->id( true),216 'id' => $this->id(), 211 217 'size' => '', 212 218 'alt' => trim($node->getAttribute('alt')) -
seowriting/trunk/readme.txt
r3294226 r3294657 5 5 Requires at least: 4.9 6 6 Requires PHP: 5.6.20 7 Stable tag: 1.11.1 37 Stable tag: 1.11.14 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 22 22 23 23 == Changelog == 24 25 = 1.11.14 (2025/05/16) = 26 27 Fix: 28 * Elementor image block 24 29 25 30 = 1.11.13 (2025/05/15) = -
seowriting/trunk/seowriting.php
r3294224 r3294657 9 9 * Plugin Name: SEOWriting 10 10 * Description: SEOWriting - AI Writing Tool Plugin For Text Generation 11 * Version: 1.11.1 311 * Version: 1.11.14 12 12 * Author: SEOWriting 13 13 * Author URI: https://seowriting.ai/?utm_source=wp_plugin … … 28 28 public $plugin_slug; 29 29 public $plugin_path; 30 public $version = '1.11.1 3';30 public $version = '1.11.14'; 31 31 /** 32 32 * @var \SEOWriting\APIClient|null … … 797 797 798 798 $attachment_id = 0; 799 if (i n_array($path, $images)) {800 $attachment_id = array_search($path, $images);799 if (isset($images[$path])) { 800 $attachment_id = $images[$path]; 801 801 } elseif ($file = $api->loadImage($path, $alt)) { 802 802 $id = media_handle_sideload($file, $post_id); … … 810 810 } else { 811 811 $attachment_id = $id; 812 $images[$ id] = $path;812 $images[$path] = $id; 813 813 814 814 if (strlen($alt) > 0) { -
seowriting/trunk/utils.php
r3293374 r3294657 1 1 <?php 2 3 $dev = __DIR__ . '/dev.php'; 4 define('SW_IS_DEV', is_readable($dev)); 5 if (SW_IS_DEV) { 6 include_once $dev; 7 } 2 8 3 9 function seowriting_add_file_to_zip($dir, $zip, $rootPath = '')
Note: See TracChangeset
for help on using the changeset viewer.