diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index f53421d..afc6618 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -19,4 +19,4 @@ jobs: SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} SVN_USERNAME: ${{ secrets.SVN_USERNAME }} SLUG: integrate-firebase - VERSION: 0.9.3 + VERSION: 0.10.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c35a87..fc39240 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. +## [ 0.10.0 ] - 04-04-2024 + +- update tested version +- feedback from wordfence + ## [ 0.9.3 ] - 07-09-2024 - update css wording diff --git a/README.md b/README.md index 7238d04..d99d429 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ Tags: firebase, wordpress Requires at least: 4.0.0 -Tested up to: 6.5.2 +Tested up to: 6.7.1 -Stable tag: 0.9.3 +Stable tag: 0.10.0 Requires PHP: 5.2.4 diff --git a/includes/class.firebase-admin.php b/includes/class.firebase-admin.php index 24f9ace..743c9c2 100644 --- a/includes/class.firebase-admin.php +++ b/includes/class.firebase-admin.php @@ -53,15 +53,15 @@ public static function load_firebase_admin_js() { wp_enqueue_script('firebase-admin', plugin_dir_url(dirname(__FILE__)) . 'js/firebase-admin.js', array('jquery'), FIREBASE_WP_VERSION, true); wp_localize_script('firebase-admin', 'firebaseDatabaseOptions', array( - 'databaseType' => self::$options_database['database_type'], - 'collections' => self::$options_database['collection_names'], + 'databaseType' => self::$options_database['database_type'] ?? '', + 'collections' => self::$options_database['collection_names'] ?? '', ) ); wp_localize_script('firebase-admin', 'firebaseOptions', array( - 'apiKey' => self::$options['api_key'], - 'authDomain' => self::$options['auth_domain'], - 'databaseURL' => self::$options['database_url'], - 'projectId' => self::$options['project_id'], + 'apiKey' => self::$options['api_key'] ?? '', + 'authDomain' => self::$options['auth_domain'] ?? '', + 'databaseURL' => self::$options['database_url'] ?? '', + 'projectId' => self::$options['project_id'] ?? '', ) ); } diff --git a/includes/class.shortcodes.php b/includes/class.shortcodes.php index 3c18150..dd1d428 100644 --- a/includes/class.shortcodes.php +++ b/includes/class.shortcodes.php @@ -61,7 +61,7 @@ public static function firebase_greetings_func() { public static function firebase_show_func($atts, $content) { $class_name = ""; if(isset($atts['class'])){ - $class_name = $atts['class']; + $class_name = esc_attr($atts['class']); } $html = ""; $html .= "