From ed0ea52fc2c678c22c5818256a23e0c43270ce5d Mon Sep 17 00:00:00 2001 From: Kirtan Gajjar <8456197+kirtangajjar@users.noreply.github.com> Date: Sun, 16 Jun 2024 18:31:06 +0530 Subject: [PATCH 1/2] Fix creation of dynamic property warning --- includes/classes/Authentication.php | 56 +++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/includes/classes/Authentication.php b/includes/classes/Authentication.php index 3fd9f5c9f..e93d536c0 100644 --- a/includes/classes/Authentication.php +++ b/includes/classes/Authentication.php @@ -24,6 +24,62 @@ abstract class Authentication { */ public static $error_message; + /** + * Site URL + * + * @var string + */ + public $site_url; + + /** + * Username + * + * @var string + */ + public $username; + + /** + * Password + * + * @var string + */ + public $password; + + /** + * API Key + * + * @var string + */ + public $client_id; + + /** + * API Secret + * + * @var string + */ + public $client_secret; + + /** + * Redirect URI + * + * @var string + */ + public $redirect_uri; + + /** + * Access Token + * + * @var string + */ + public $base64_encoded; + + /** + * Created Post ID + * + * @var string + */ + public $dt_created_post_id; + /** * Set associative arguments as instance variables * From ff29760b2cfa1a4bc24ab186b9ef97425410112b Mon Sep 17 00:00:00 2001 From: Siddharth Thevaril Date: Mon, 19 Aug 2024 20:03:44 +0530 Subject: [PATCH 2/2] move change to WordPressBasicAuth.php --- includes/classes/Authentication.php | 56 ------------------- .../Authentications/WordPressBasicAuth.php | 56 +++++++++++++++++++ 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/includes/classes/Authentication.php b/includes/classes/Authentication.php index e93d536c0..3fd9f5c9f 100644 --- a/includes/classes/Authentication.php +++ b/includes/classes/Authentication.php @@ -24,62 +24,6 @@ abstract class Authentication { */ public static $error_message; - /** - * Site URL - * - * @var string - */ - public $site_url; - - /** - * Username - * - * @var string - */ - public $username; - - /** - * Password - * - * @var string - */ - public $password; - - /** - * API Key - * - * @var string - */ - public $client_id; - - /** - * API Secret - * - * @var string - */ - public $client_secret; - - /** - * Redirect URI - * - * @var string - */ - public $redirect_uri; - - /** - * Access Token - * - * @var string - */ - public $base64_encoded; - - /** - * Created Post ID - * - * @var string - */ - public $dt_created_post_id; - /** * Set associative arguments as instance variables * diff --git a/includes/classes/Authentications/WordPressBasicAuth.php b/includes/classes/Authentications/WordPressBasicAuth.php index 6854284ee..8dfff2613 100644 --- a/includes/classes/Authentications/WordPressBasicAuth.php +++ b/includes/classes/Authentications/WordPressBasicAuth.php @@ -34,6 +34,62 @@ class WordPressBasicAuth extends Authentication { */ public static $label = 'Username/Password'; + /** + * Site URL + * + * @var string + */ + public $site_url; + + /** + * Username + * + * @var string + */ + public $username; + + /** + * Password + * + * @var string + */ + public $password; + + /** + * API Key + * + * @var string + */ + public $client_id; + + /** + * API Secret + * + * @var string + */ + public $client_secret; + + /** + * Redirect URI + * + * @var string + */ + public $redirect_uri; + + /** + * Access Token + * + * @var string + */ + public $base64_encoded; + + /** + * Created Post ID + * + * @var string + */ + public $dt_created_post_id; + /** * Setup class *