Changeset 3405215
- Timestamp:
- 11/28/2025 01:34:26 PM (4 months ago)
- Location:
- seowriting
- Files:
-
- 2 edited
- 11 copied
-
tags/1.12.4 (copied) (copied from seowriting/trunk)
-
tags/1.12.4/assets/css/admin.css (copied) (copied from seowriting/trunk/assets/css/admin.css)
-
tags/1.12.4/classes/api-client.php (copied) (copied from seowriting/trunk/classes/api-client.php)
-
tags/1.12.4/classes/html2elementor.php (copied) (copied from seowriting/trunk/classes/html2elementor.php)
-
tags/1.12.4/classes/post-meta.php (copied) (copied from seowriting/trunk/classes/post-meta.php)
-
tags/1.12.4/classes/settings-form.php (copied) (copied from seowriting/trunk/classes/settings-form.php)
-
tags/1.12.4/default.css (copied) (copied from seowriting/trunk/default.css)
-
tags/1.12.4/readme.txt (copied) (copied from seowriting/trunk/readme.txt) (2 diffs)
-
tags/1.12.4/seowriting.php (copied) (copied from seowriting/trunk/seowriting.php) (4 diffs)
-
tags/1.12.4/tpl/settings/settings.tpl.php (copied) (copied from seowriting/trunk/tpl/settings/settings.tpl.php)
-
tags/1.12.4/utils.php (copied) (copied from seowriting/trunk/utils.php)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/seowriting.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seowriting/tags/1.12.4/readme.txt
r3334461 r3405215 2 2 Contributors: SEOWriting 3 3 Tags: seo writing, AI tool, AI writing, generation text 4 Tested up to: 6.8.14 Tested up to: 7.0 5 5 Requires at least: 4.9 6 Requires PHP: 5.6.207 Stable tag: 1.12. 36 Requires PHP: 7.1 7 Stable tag: 1.12.4 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.12.4 (2025/11/28) = 26 27 Feature: 28 * Added `6.8.2`, `6.8.3`, `6.9` and `7.0` WP versions support 29 * Added `8.5` PHP version support 30 * Support for `5.6.20` and `7.0` PHP versions has been removed 31 * The `transition_post_status` webhook has been removed 24 32 25 33 = 1.12.3 (2025/07/26) = -
seowriting/tags/1.12.4/seowriting.php
r3334461 r3405215 9 9 * Plugin Name: SEOWriting 10 10 * Description: SEOWriting - AI Writing Tool Plugin For Text Generation 11 * Version: 1.12. 311 * Version: 1.12.4 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.12. 3';30 public $version = '1.12.4'; 31 31 /** 32 32 * @var \SEOWriting\APIClient|null … … 107 107 add_action("wp_head", [$this, 'printJSONLD'], 20); 108 108 109 add_action('transition_post_status', [$this, 'onChangePostStatus'], 10, 3);110 109 add_action('upgrader_process_complete', [$this, 'onUpdate'], 10, 2); 111 110 … … 177 176 } 178 177 } 179 }180 181 /**182 * @param $new_status string183 * @param $old_status string184 * @param $post WP_Post185 * @return bool186 */187 public function onChangePostStatus($new_status, $old_status, $post)188 {189 $status = '';190 if (191 ($old_status === 'auto-draft' && $new_status === 'publish')192 || ($old_status === 'pending' && $new_status === 'publish')193 || ($old_status === 'draft' && $new_status === 'publish')194 || ($old_status === 'publish' && $new_status === 'publish')195 ) {196 $status = 'update';197 } else if (198 ($old_status === 'publish' && $new_status === 'pending')199 || ($old_status === 'publish' && $new_status === 'draft')200 || ($old_status === 'publish' && $new_status === 'trash')201 ) {202 $status = 'delete';203 }204 if ($status === '') {205 return false;206 }207 $settings = $this->getSettings();208 $this->getAPIClient()->changePostStatus($status, [209 'post_id' => $post->ID,210 'api_key' => isset($settings['api_key']) ? $settings['api_key'] : 'null',211 ]);212 213 return true;214 178 } 215 179 -
seowriting/trunk/readme.txt
r3334461 r3405215 2 2 Contributors: SEOWriting 3 3 Tags: seo writing, AI tool, AI writing, generation text 4 Tested up to: 6.8.14 Tested up to: 7.0 5 5 Requires at least: 4.9 6 Requires PHP: 5.6.207 Stable tag: 1.12. 36 Requires PHP: 7.1 7 Stable tag: 1.12.4 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.12.4 (2025/11/28) = 26 27 Feature: 28 * Added `6.8.2`, `6.8.3`, `6.9` and `7.0` WP versions support 29 * Added `8.5` PHP version support 30 * Support for `5.6.20` and `7.0` PHP versions has been removed 31 * The `transition_post_status` webhook has been removed 24 32 25 33 = 1.12.3 (2025/07/26) = -
seowriting/trunk/seowriting.php
r3334461 r3405215 9 9 * Plugin Name: SEOWriting 10 10 * Description: SEOWriting - AI Writing Tool Plugin For Text Generation 11 * Version: 1.12. 311 * Version: 1.12.4 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.12. 3';30 public $version = '1.12.4'; 31 31 /** 32 32 * @var \SEOWriting\APIClient|null … … 107 107 add_action("wp_head", [$this, 'printJSONLD'], 20); 108 108 109 add_action('transition_post_status', [$this, 'onChangePostStatus'], 10, 3);110 109 add_action('upgrader_process_complete', [$this, 'onUpdate'], 10, 2); 111 110 … … 177 176 } 178 177 } 179 }180 181 /**182 * @param $new_status string183 * @param $old_status string184 * @param $post WP_Post185 * @return bool186 */187 public function onChangePostStatus($new_status, $old_status, $post)188 {189 $status = '';190 if (191 ($old_status === 'auto-draft' && $new_status === 'publish')192 || ($old_status === 'pending' && $new_status === 'publish')193 || ($old_status === 'draft' && $new_status === 'publish')194 || ($old_status === 'publish' && $new_status === 'publish')195 ) {196 $status = 'update';197 } else if (198 ($old_status === 'publish' && $new_status === 'pending')199 || ($old_status === 'publish' && $new_status === 'draft')200 || ($old_status === 'publish' && $new_status === 'trash')201 ) {202 $status = 'delete';203 }204 if ($status === '') {205 return false;206 }207 $settings = $this->getSettings();208 $this->getAPIClient()->changePostStatus($status, [209 'post_id' => $post->ID,210 'api_key' => isset($settings['api_key']) ? $settings['api_key'] : 'null',211 ]);212 213 return true;214 178 } 215 179
Note: See TracChangeset
for help on using the changeset viewer.