Changeset 3068892
- Timestamp:
- 04/11/2024 09:56:14 AM (2 years ago)
- Location:
- seowriting
- Files:
-
- 1 deleted
- 2 edited
- 9 copied
-
tags/1.5.4 (deleted)
-
tags/1.5.6 (copied) (copied from seowriting/trunk)
-
tags/1.5.6/assets (copied) (copied from seowriting/trunk/assets)
-
tags/1.5.6/classes (copied) (copied from seowriting/trunk/classes)
-
tags/1.5.6/classes/api-client.php (copied) (copied from seowriting/trunk/classes/api-client.php)
-
tags/1.5.6/readme.txt (copied) (copied from seowriting/trunk/readme.txt) (2 diffs)
-
tags/1.5.6/seowriting.php (copied) (copied from seowriting/trunk/seowriting.php) (5 diffs)
-
tags/1.5.6/tpl (copied) (copied from seowriting/trunk/tpl)
-
tags/1.5.6/uninstall.php (copied) (copied from seowriting/trunk/uninstall.php)
-
tags/1.5.6/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.6/readme.txt
r3068629 r3068892 5 5 Requires at least: 4.9 6 6 Requires PHP: 5.6.20 7 Stable tag: 1.5. 57 Stable tag: 1.5.6 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.6 (2024/04/11) = 26 27 Feature: Internal changes to the plugin to determine the user who activated the plugin. 24 28 25 29 = 1.5.5 (2024/04/10) = -
seowriting/tags/1.5.6/seowriting.php
r3068629 r3068892 9 9 * Plugin Name: SEOWriting 10 10 * Description: SEOWriting - AI Writing Tool Plugin For Text Generation 11 * Version: 1.5. 511 * Version: 1.5.6 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. 5';30 public $version = '1.5.6'; 31 31 /** 32 32 * @var \SEOWriting\APIClient|null … … 350 350 'result' => 1, 351 351 'categories' => $this->getCategories(), 352 'authors' => $this->getAuthors( true),352 'authors' => $this->getAuthors(), 353 353 ]; 354 354 } elseif ($action === 'disconnect') { … … 707 707 * @return array<array<string, int|string>> 708 708 */ 709 public function getAuthors( $checkForDefault = false)709 public function getAuthors() 710 710 { 711 711 $users = get_users([ 712 712 'role__in' => ['administrator', 'author', 'editor'] 713 713 ]); 714 714 $settings = $this->getSettings(); 715 $settingsUserID = isset($settings['user_id']) ? (int)$settings['user_id'] : 0; 715 716 $result = []; 716 717 foreach ($users as $user) { … … 719 720 'login' => $user->data->user_login, 720 721 ]; 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; 724 724 } 725 725 $result[] = $data; -
seowriting/trunk/readme.txt
r3068629 r3068892 5 5 Requires at least: 4.9 6 6 Requires PHP: 5.6.20 7 Stable tag: 1.5. 57 Stable tag: 1.5.6 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.6 (2024/04/11) = 26 27 Feature: Internal changes to the plugin to determine the user who activated the plugin. 24 28 25 29 = 1.5.5 (2024/04/10) = -
seowriting/trunk/seowriting.php
r3068629 r3068892 9 9 * Plugin Name: SEOWriting 10 10 * Description: SEOWriting - AI Writing Tool Plugin For Text Generation 11 * Version: 1.5. 511 * Version: 1.5.6 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. 5';30 public $version = '1.5.6'; 31 31 /** 32 32 * @var \SEOWriting\APIClient|null … … 350 350 'result' => 1, 351 351 'categories' => $this->getCategories(), 352 'authors' => $this->getAuthors( true),352 'authors' => $this->getAuthors(), 353 353 ]; 354 354 } elseif ($action === 'disconnect') { … … 707 707 * @return array<array<string, int|string>> 708 708 */ 709 public function getAuthors( $checkForDefault = false)709 public function getAuthors() 710 710 { 711 711 $users = get_users([ 712 712 'role__in' => ['administrator', 'author', 'editor'] 713 713 ]); 714 714 $settings = $this->getSettings(); 715 $settingsUserID = isset($settings['user_id']) ? (int)$settings['user_id'] : 0; 715 716 $result = []; 716 717 foreach ($users as $user) { … … 719 720 'login' => $user->data->user_login, 720 721 ]; 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; 724 724 } 725 725 $result[] = $data;
Note: See TracChangeset
for help on using the changeset viewer.