Plugin Directory

Changeset 3405215


Ignore:
Timestamp:
11/28/2025 01:34:26 PM (4 months ago)
Author:
seowriting
Message:

New version of plugin: 1.12.4

Location:
seowriting
Files:
2 edited
11 copied

Legend:

Unmodified
Added
Removed
  • seowriting/tags/1.12.4/readme.txt

    r3334461 r3405215  
    22Contributors: SEOWriting
    33Tags: seo writing, AI tool, AI writing, generation text
    4 Tested up to: 6.8.1
     4Tested up to: 7.0
    55Requires at least: 4.9
    6 Requires PHP: 5.6.20
    7 Stable tag: 1.12.3
     6Requires PHP: 7.1
     7Stable tag: 1.12.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2222
    2323== Changelog ==
     24
     25= 1.12.4 (2025/11/28) =
     26
     27Feature:
     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
    2432
    2533= 1.12.3 (2025/07/26) =
  • seowriting/tags/1.12.4/seowriting.php

    r3334461 r3405215  
    99 * Plugin Name:       SEOWriting
    1010 * Description:       SEOWriting - AI Writing Tool Plugin For Text Generation
    11  * Version:           1.12.3
     11 * Version:           1.12.4
    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.12.3';
     30        public $version = '1.12.4';
    3131        /**
    3232         * @var \SEOWriting\APIClient|null
     
    107107            add_action("wp_head", [$this, 'printJSONLD'], 20);
    108108
    109             add_action('transition_post_status', [$this, 'onChangePostStatus'], 10, 3);
    110109            add_action('upgrader_process_complete', [$this, 'onUpdate'], 10, 2);
    111110
     
    177176                }
    178177            }
    179         }
    180 
    181         /**
    182          * @param $new_status string
    183          * @param $old_status string
    184          * @param $post WP_Post
    185          * @return bool
    186          */
    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;
    214178        }
    215179
  • seowriting/trunk/readme.txt

    r3334461 r3405215  
    22Contributors: SEOWriting
    33Tags: seo writing, AI tool, AI writing, generation text
    4 Tested up to: 6.8.1
     4Tested up to: 7.0
    55Requires at least: 4.9
    6 Requires PHP: 5.6.20
    7 Stable tag: 1.12.3
     6Requires PHP: 7.1
     7Stable tag: 1.12.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2222
    2323== Changelog ==
     24
     25= 1.12.4 (2025/11/28) =
     26
     27Feature:
     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
    2432
    2533= 1.12.3 (2025/07/26) =
  • seowriting/trunk/seowriting.php

    r3334461 r3405215  
    99 * Plugin Name:       SEOWriting
    1010 * Description:       SEOWriting - AI Writing Tool Plugin For Text Generation
    11  * Version:           1.12.3
     11 * Version:           1.12.4
    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.12.3';
     30        public $version = '1.12.4';
    3131        /**
    3232         * @var \SEOWriting\APIClient|null
     
    107107            add_action("wp_head", [$this, 'printJSONLD'], 20);
    108108
    109             add_action('transition_post_status', [$this, 'onChangePostStatus'], 10, 3);
    110109            add_action('upgrader_process_complete', [$this, 'onUpdate'], 10, 2);
    111110
     
    177176                }
    178177            }
    179         }
    180 
    181         /**
    182          * @param $new_status string
    183          * @param $old_status string
    184          * @param $post WP_Post
    185          * @return bool
    186          */
    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;
    214178        }
    215179
Note: See TracChangeset for help on using the changeset viewer.