Changeset 3068629
- Timestamp:
- 04/10/2024 07:37:53 PM (2 years ago)
- Location:
- seowriting
- Files:
-
- 2 edited
- 9 copied
-
tags/1.5.5 (copied) (copied from seowriting/trunk)
-
tags/1.5.5/assets (copied) (copied from seowriting/trunk/assets)
-
tags/1.5.5/classes (copied) (copied from seowriting/trunk/classes)
-
tags/1.5.5/classes/api-client.php (copied) (copied from seowriting/trunk/classes/api-client.php)
-
tags/1.5.5/readme.txt (copied) (copied from seowriting/trunk/readme.txt) (2 diffs)
-
tags/1.5.5/seowriting.php (copied) (copied from seowriting/trunk/seowriting.php) (5 diffs)
-
tags/1.5.5/tpl (copied) (copied from seowriting/trunk/tpl)
-
tags/1.5.5/uninstall.php (copied) (copied from seowriting/trunk/uninstall.php)
-
tags/1.5.5/utils.php (copied) (copied from seowriting/trunk/utils.php)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/seowriting.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seowriting/tags/1.5.5/readme.txt
r3066931 r3068629 2 2 Contributors: SEOWriting 3 3 Tags: seo writing, AI tool, AI writing, generation text 4 Tested up to: 6. 44 Tested up to: 6.5 5 5 Requires at least: 4.9 6 6 Requires PHP: 5.6.20 7 Stable tag: 1.5. 47 Stable tag: 1.5.5 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.5.5 (2024/04/10) = 26 27 Feature: Internal changes to the plugin to determine the user who activated the plugin. 24 28 25 29 = 1.5.4 (2024/04/08) = -
seowriting/tags/1.5.5/seowriting.php
r3066931 r3068629 9 9 * Plugin Name: SEOWriting 10 10 * Description: SEOWriting - AI Writing Tool Plugin For Text Generation 11 * Version: 1.5. 411 * Version: 1.5.5 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.5. 4';30 public $version = '1.5.5'; 31 31 /** 32 32 * @var \SEOWriting\APIClient|null … … 350 350 'result' => 1, 351 351 'categories' => $this->getCategories(), 352 'authors' => $this->getAuthors( ),352 'authors' => $this->getAuthors(true), 353 353 ]; 354 354 } elseif ($action === 'disconnect') { … … 707 707 * @return array<array<string, int|string>> 708 708 */ 709 public function getAuthors( )709 public function getAuthors($checkForDefault = false) 710 710 { 711 711 $users = get_users([ … … 715 715 $result = []; 716 716 foreach ($users as $user) { 717 $ result[]= [717 $data = [ 718 718 'id' => (int)$user->ID, 719 719 'login' => $user->data->user_login, 720 720 ]; 721 if ($checkForDefault) { 722 $currentUser = wp_get_current_user(); 723 $data['default'] = (int)$user->ID === (int)$currentUser->ID ? 1 : 0; 724 } 725 $result[] = $data; 721 726 } 722 727 -
seowriting/trunk/readme.txt
r3066931 r3068629 2 2 Contributors: SEOWriting 3 3 Tags: seo writing, AI tool, AI writing, generation text 4 Tested up to: 6. 44 Tested up to: 6.5 5 5 Requires at least: 4.9 6 6 Requires PHP: 5.6.20 7 Stable tag: 1.5. 47 Stable tag: 1.5.5 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.5.5 (2024/04/10) = 26 27 Feature: Internal changes to the plugin to determine the user who activated the plugin. 24 28 25 29 = 1.5.4 (2024/04/08) = -
seowriting/trunk/seowriting.php
r3066931 r3068629 9 9 * Plugin Name: SEOWriting 10 10 * Description: SEOWriting - AI Writing Tool Plugin For Text Generation 11 * Version: 1.5. 411 * Version: 1.5.5 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.5. 4';30 public $version = '1.5.5'; 31 31 /** 32 32 * @var \SEOWriting\APIClient|null … … 350 350 'result' => 1, 351 351 'categories' => $this->getCategories(), 352 'authors' => $this->getAuthors( ),352 'authors' => $this->getAuthors(true), 353 353 ]; 354 354 } elseif ($action === 'disconnect') { … … 707 707 * @return array<array<string, int|string>> 708 708 */ 709 public function getAuthors( )709 public function getAuthors($checkForDefault = false) 710 710 { 711 711 $users = get_users([ … … 715 715 $result = []; 716 716 foreach ($users as $user) { 717 $ result[]= [717 $data = [ 718 718 'id' => (int)$user->ID, 719 719 'login' => $user->data->user_login, 720 720 ]; 721 if ($checkForDefault) { 722 $currentUser = wp_get_current_user(); 723 $data['default'] = (int)$user->ID === (int)$currentUser->ID ? 1 : 0; 724 } 725 $result[] = $data; 721 726 } 722 727
Note: See TracChangeset
for help on using the changeset viewer.