Plugin Directory

Changeset 3068892


Ignore:
Timestamp:
04/11/2024 09:56:14 AM (2 years ago)
Author:
seowriting
Message:

New version of plugin: 1.5.6

Location:
seowriting
Files:
1 deleted
2 edited
9 copied

Legend:

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

    r3068629 r3068892  
    55Requires at least: 4.9
    66Requires PHP: 5.6.20
    7 Stable tag: 1.5.5
     7Stable tag: 1.5.6
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2222
    2323== Changelog ==
     24
     25= 1.5.6 (2024/04/11) =
     26
     27Feature: Internal changes to the plugin to determine the user who activated the plugin.
    2428
    2529= 1.5.5 (2024/04/10) =
  • seowriting/tags/1.5.6/seowriting.php

    r3068629 r3068892  
    99 * Plugin Name:       SEOWriting
    1010 * Description:       SEOWriting - AI Writing Tool Plugin For Text Generation
    11  * Version:           1.5.5
     11 * Version:           1.5.6
    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.5';
     30        public $version = '1.5.6';
    3131        /**
    3232         * @var \SEOWriting\APIClient|null
     
    350350                            'result' => 1,
    351351                            'categories' => $this->getCategories(),
    352                             'authors' => $this->getAuthors(true),
     352                            'authors' => $this->getAuthors(),
    353353                        ];
    354354                    } elseif ($action === 'disconnect') {
     
    707707         * @return array<array<string, int|string>>
    708708         */
    709         public function getAuthors($checkForDefault = false)
     709        public function getAuthors()
    710710        {
    711711            $users = get_users([
    712712                'role__in' => ['administrator', 'author', 'editor']
    713713            ]);
    714 
     714            $settings = $this->getSettings();
     715            $settingsUserID = isset($settings['user_id']) ? (int)$settings['user_id'] : 0;
    715716            $result = [];
    716717            foreach ($users as $user) {
     
    719720                    'login' => $user->data->user_login,
    720721                ];
    721                 if ($checkForDefault) {
    722                     $currentUser = wp_get_current_user();
    723                     $data['default'] = (int)$user->ID === (int)$currentUser->ID ? 1 : 0;
     722                if ($settingsUserID > 0 && (int)$user->ID === $settingsUserID) {
     723                    $data['default'] = 1;
    724724                }
    725725                $result[] = $data;
  • seowriting/trunk/readme.txt

    r3068629 r3068892  
    55Requires at least: 4.9
    66Requires PHP: 5.6.20
    7 Stable tag: 1.5.5
     7Stable tag: 1.5.6
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2222
    2323== Changelog ==
     24
     25= 1.5.6 (2024/04/11) =
     26
     27Feature: Internal changes to the plugin to determine the user who activated the plugin.
    2428
    2529= 1.5.5 (2024/04/10) =
  • seowriting/trunk/seowriting.php

    r3068629 r3068892  
    99 * Plugin Name:       SEOWriting
    1010 * Description:       SEOWriting - AI Writing Tool Plugin For Text Generation
    11  * Version:           1.5.5
     11 * Version:           1.5.6
    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.5';
     30        public $version = '1.5.6';
    3131        /**
    3232         * @var \SEOWriting\APIClient|null
     
    350350                            'result' => 1,
    351351                            'categories' => $this->getCategories(),
    352                             'authors' => $this->getAuthors(true),
     352                            'authors' => $this->getAuthors(),
    353353                        ];
    354354                    } elseif ($action === 'disconnect') {
     
    707707         * @return array<array<string, int|string>>
    708708         */
    709         public function getAuthors($checkForDefault = false)
     709        public function getAuthors()
    710710        {
    711711            $users = get_users([
    712712                'role__in' => ['administrator', 'author', 'editor']
    713713            ]);
    714 
     714            $settings = $this->getSettings();
     715            $settingsUserID = isset($settings['user_id']) ? (int)$settings['user_id'] : 0;
    715716            $result = [];
    716717            foreach ($users as $user) {
     
    719720                    'login' => $user->data->user_login,
    720721                ];
    721                 if ($checkForDefault) {
    722                     $currentUser = wp_get_current_user();
    723                     $data['default'] = (int)$user->ID === (int)$currentUser->ID ? 1 : 0;
     722                if ($settingsUserID > 0 && (int)$user->ID === $settingsUserID) {
     723                    $data['default'] = 1;
    724724                }
    725725                $result[] = $data;
Note: See TracChangeset for help on using the changeset viewer.