Plugin Directory

Changeset 3068629


Ignore:
Timestamp:
04/10/2024 07:37:53 PM (2 years ago)
Author:
seowriting
Message:

New version of plugin: 1.5.5

Location:
seowriting
Files:
2 edited
9 copied

Legend:

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

    r3066931 r3068629  
    22Contributors: SEOWriting
    33Tags: seo writing, AI tool, AI writing, generation text
    4 Tested up to: 6.4
     4Tested up to: 6.5
    55Requires at least: 4.9
    66Requires PHP: 5.6.20
    7 Stable tag: 1.5.4
     7Stable tag: 1.5.5
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2222
    2323== Changelog ==
     24
     25= 1.5.5 (2024/04/10) =
     26
     27Feature: Internal changes to the plugin to determine the user who activated the plugin.
    2428
    2529= 1.5.4 (2024/04/08) =
  • seowriting/tags/1.5.5/seowriting.php

    r3066931 r3068629  
    99 * Plugin Name:       SEOWriting
    1010 * Description:       SEOWriting - AI Writing Tool Plugin For Text Generation
    11  * Version:           1.5.4
     11 * Version:           1.5.5
    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.5.4';
     30        public $version = '1.5.5';
    3131        /**
    3232         * @var \SEOWriting\APIClient|null
     
    350350                            'result' => 1,
    351351                            'categories' => $this->getCategories(),
    352                             'authors' => $this->getAuthors(),
     352                            'authors' => $this->getAuthors(true),
    353353                        ];
    354354                    } elseif ($action === 'disconnect') {
     
    707707         * @return array<array<string, int|string>>
    708708         */
    709         public function getAuthors()
     709        public function getAuthors($checkForDefault = false)
    710710        {
    711711            $users = get_users([
     
    715715            $result = [];
    716716            foreach ($users as $user) {
    717                 $result[] = [
     717                $data = [
    718718                    'id' => (int)$user->ID,
    719719                    'login' => $user->data->user_login,
    720720                ];
     721                if ($checkForDefault) {
     722                    $currentUser = wp_get_current_user();
     723                    $data['default'] = (int)$user->ID === (int)$currentUser->ID ? 1 : 0;
     724                }
     725                $result[] = $data;
    721726            }
    722727
  • seowriting/trunk/readme.txt

    r3066931 r3068629  
    22Contributors: SEOWriting
    33Tags: seo writing, AI tool, AI writing, generation text
    4 Tested up to: 6.4
     4Tested up to: 6.5
    55Requires at least: 4.9
    66Requires PHP: 5.6.20
    7 Stable tag: 1.5.4
     7Stable tag: 1.5.5
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2222
    2323== Changelog ==
     24
     25= 1.5.5 (2024/04/10) =
     26
     27Feature: Internal changes to the plugin to determine the user who activated the plugin.
    2428
    2529= 1.5.4 (2024/04/08) =
  • seowriting/trunk/seowriting.php

    r3066931 r3068629  
    99 * Plugin Name:       SEOWriting
    1010 * Description:       SEOWriting - AI Writing Tool Plugin For Text Generation
    11  * Version:           1.5.4
     11 * Version:           1.5.5
    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.5.4';
     30        public $version = '1.5.5';
    3131        /**
    3232         * @var \SEOWriting\APIClient|null
     
    350350                            'result' => 1,
    351351                            'categories' => $this->getCategories(),
    352                             'authors' => $this->getAuthors(),
     352                            'authors' => $this->getAuthors(true),
    353353                        ];
    354354                    } elseif ($action === 'disconnect') {
     
    707707         * @return array<array<string, int|string>>
    708708         */
    709         public function getAuthors()
     709        public function getAuthors($checkForDefault = false)
    710710        {
    711711            $users = get_users([
     
    715715            $result = [];
    716716            foreach ($users as $user) {
    717                 $result[] = [
     717                $data = [
    718718                    'id' => (int)$user->ID,
    719719                    'login' => $user->data->user_login,
    720720                ];
     721                if ($checkForDefault) {
     722                    $currentUser = wp_get_current_user();
     723                    $data['default'] = (int)$user->ID === (int)$currentUser->ID ? 1 : 0;
     724                }
     725                $result[] = $data;
    721726            }
    722727
Note: See TracChangeset for help on using the changeset viewer.