Changeset 3262423
- Timestamp:
- 03/26/2025 08:45:38 PM (12 months ago)
- Location:
- seowriting
- Files:
-
- 3 edited
- 6 copied
-
tags/1.10.8 (copied) (copied from seowriting/trunk)
-
tags/1.10.8/assets/css/admin.css (copied) (copied from seowriting/trunk/assets/css/admin.css)
-
tags/1.10.8/classes/api-client.php (copied) (copied from seowriting/trunk/classes/api-client.php) (2 diffs)
-
tags/1.10.8/classes/settings-form.php (copied) (copied from seowriting/trunk/classes/settings-form.php)
-
tags/1.10.8/readme.txt (copied) (copied from seowriting/trunk/readme.txt) (2 diffs)
-
tags/1.10.8/seowriting.php (copied) (copied from seowriting/trunk/seowriting.php) (2 diffs)
-
trunk/classes/api-client.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/seowriting.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seowriting/tags/1.10.8/classes/api-client.php
r3262393 r3262423 227 227 228 228 if ($image_size && ($image_size['mime'] === $content_type)) { 229 $name = basename($url); 230 if (strlen($filename) > 0) { 231 $filename = trim($filename, " \n\r\t.?!;:/\\#"); 232 233 if (strlen($filename) > 0) { 234 $ext = "." . explode("/", $content_type)[1]; 235 $max_length = self::MAX_FILENAME_LENGTH - strlen($ext); 236 237 if (mb_strlen($filename, \SEOWriting::MB_ENCODING) > $max_length) { 238 $_name = mb_substr($filename, 0, $max_length, \SEOWriting::MB_ENCODING); 239 240 if (preg_match('/^\s/us', mb_substr($filename, $max_length, 1, \SEOWriting::MB_ENCODING))) { 241 $filename = trim($_name); 242 } else { 243 $filename = preg_replace('/^(.+)\s+\S+$/us', '\\1', $_name); 244 } 245 } 246 247 $name = $filename . $ext; 229 $filename = trim($filename, " \n\r\t.?!;:/\\#"); 230 if (strlen($filename) === 0) { 231 $filename = "image"; 232 } 233 $ext = "." . explode("/", $content_type)[1]; 234 $max_length = self::MAX_FILENAME_LENGTH - strlen($ext); 235 236 if (mb_strlen($filename, \SEOWriting::MB_ENCODING) > $max_length) { 237 $_name = mb_substr($filename, 0, $max_length, \SEOWriting::MB_ENCODING); 238 239 if (preg_match('/^\s/us', mb_substr($filename, $max_length, 1, \SEOWriting::MB_ENCODING))) { 240 $filename = trim($_name); 241 } else { 242 $filename = preg_replace('/^(.+)\s+\S+$/us', '\\1', $_name); 248 243 } 249 244 } 245 246 $name = $filename . $ext; 250 247 251 248 return [ … … 262 259 @unlink($tmp_name); 263 260 } else { 264 $this->error = 'unknown_type=' .$content_type;261 $this->error = 'unknown_type=' . $content_type; 265 262 } 266 263 } else { -
seowriting/tags/1.10.8/readme.txt
r3262393 r3262423 5 5 Requires at least: 4.9 6 6 Requires PHP: 5.6.20 7 Stable tag: 1.10. 77 Stable tag: 1.10.8 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.10.8 (2025/03/26) = 26 27 Feature: 28 * Default file name for image without alt 24 29 25 30 = 1.10.7 (2025/03/26) = -
seowriting/tags/1.10.8/seowriting.php
r3262393 r3262423 9 9 * Plugin Name: SEOWriting 10 10 * Description: SEOWriting - AI Writing Tool Plugin For Text Generation 11 * Version: 1.10. 711 * Version: 1.10.8 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.10. 7';30 public $version = '1.10.8'; 31 31 /** 32 32 * @var \SEOWriting\APIClient|null -
seowriting/trunk/classes/api-client.php
r3262393 r3262423 227 227 228 228 if ($image_size && ($image_size['mime'] === $content_type)) { 229 $name = basename($url); 230 if (strlen($filename) > 0) { 231 $filename = trim($filename, " \n\r\t.?!;:/\\#"); 232 233 if (strlen($filename) > 0) { 234 $ext = "." . explode("/", $content_type)[1]; 235 $max_length = self::MAX_FILENAME_LENGTH - strlen($ext); 236 237 if (mb_strlen($filename, \SEOWriting::MB_ENCODING) > $max_length) { 238 $_name = mb_substr($filename, 0, $max_length, \SEOWriting::MB_ENCODING); 239 240 if (preg_match('/^\s/us', mb_substr($filename, $max_length, 1, \SEOWriting::MB_ENCODING))) { 241 $filename = trim($_name); 242 } else { 243 $filename = preg_replace('/^(.+)\s+\S+$/us', '\\1', $_name); 244 } 245 } 246 247 $name = $filename . $ext; 229 $filename = trim($filename, " \n\r\t.?!;:/\\#"); 230 if (strlen($filename) === 0) { 231 $filename = "image"; 232 } 233 $ext = "." . explode("/", $content_type)[1]; 234 $max_length = self::MAX_FILENAME_LENGTH - strlen($ext); 235 236 if (mb_strlen($filename, \SEOWriting::MB_ENCODING) > $max_length) { 237 $_name = mb_substr($filename, 0, $max_length, \SEOWriting::MB_ENCODING); 238 239 if (preg_match('/^\s/us', mb_substr($filename, $max_length, 1, \SEOWriting::MB_ENCODING))) { 240 $filename = trim($_name); 241 } else { 242 $filename = preg_replace('/^(.+)\s+\S+$/us', '\\1', $_name); 248 243 } 249 244 } 245 246 $name = $filename . $ext; 250 247 251 248 return [ … … 262 259 @unlink($tmp_name); 263 260 } else { 264 $this->error = 'unknown_type=' .$content_type;261 $this->error = 'unknown_type=' . $content_type; 265 262 } 266 263 } else { -
seowriting/trunk/readme.txt
r3262393 r3262423 5 5 Requires at least: 4.9 6 6 Requires PHP: 5.6.20 7 Stable tag: 1.10. 77 Stable tag: 1.10.8 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.10.8 (2025/03/26) = 26 27 Feature: 28 * Default file name for image without alt 24 29 25 30 = 1.10.7 (2025/03/26) = -
seowriting/trunk/seowriting.php
r3262393 r3262423 9 9 * Plugin Name: SEOWriting 10 10 * Description: SEOWriting - AI Writing Tool Plugin For Text Generation 11 * Version: 1.10. 711 * Version: 1.10.8 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.10. 7';30 public $version = '1.10.8'; 31 31 /** 32 32 * @var \SEOWriting\APIClient|null
Note: See TracChangeset
for help on using the changeset viewer.