Skip to content

Commit

Permalink
feat: feedback from wordfence
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale Nguyen committed Dec 4, 2024
1 parent e6ee070 commit eea2d65
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 6 additions & 6 deletions includes/class.firebase-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ?? '',
)
);
}
Expand Down
12 changes: 6 additions & 6 deletions includes/class.shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= "<div class='firebase-show $class_name'>";
Expand All @@ -73,7 +73,7 @@ public static function firebase_show_func($atts, $content) {
public static function firebase_show_not_login_func($atts, $content) {
$class_name = "";
if(isset($atts['class'])){
$class_name = $atts['class'];
$class_name = esc_attr($atts['class']);
}
$html = "";
$html .= "<div class='firebase-show-when-not-login $class_name'>";
Expand All @@ -85,7 +85,7 @@ public static function firebase_show_not_login_func($atts, $content) {
public static function firebase_login_error_func($atts) {
$class_name = "";
if(isset($atts['class'])){
$class_name = $atts['class'];
$class_name = esc_attr($atts['class']);
}
$html = "";
$html .= "<div class='$class_name'>";
Expand All @@ -103,15 +103,15 @@ public static function realtime_func($atts) {
$document_name = "";

if(isset($atts['class'])){
$class_name = $atts['class'];
$class_name = esc_attr($atts['class']);
}

if(isset($atts['collection_name'])){
$collection_name = $atts['collection_name'];
$collection_name = esc_attr($atts['collection_name']);
}

if(isset($atts['document_name'])){
$document_name = $atts['document_name'];
$document_name = esc_attr($atts['document_name']);
}

$html = "";
Expand Down
6 changes: 3 additions & 3 deletions init.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* The initation loader for Firebase, and the main plugin file.
* The initiation loader for Firebase, and the main plugin file.
*
* @category WordPress_Plugin
* @package integrate-firebase
Expand All @@ -16,7 +16,7 @@
* Author URI: http://dalenguyen.me
* Contributors: Dale Nguyen (@dalenguyen)
*
* Version: 0.9.3
* Version: 0.10.0
*
* Text Domain: integrate-firebase
*
Expand Down Expand Up @@ -54,7 +54,7 @@
exit;
}

define('FIREBASE_WP_VERSION', '0.9.3');
define('FIREBASE_WP_VERSION', '0.10.0');
define('FIREBASE_WP__MINIMUM_WP_VERSION', '4.0.0');
define('FIREBASE_WP__PLUGIN_DIR', plugin_dir_path(__FILE__));

Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: hanthuy
Donate link: https://www.paypal.me/DaleNguyen
Tags: firebase
Requires at least: 4.0.0
Tested up to: 6.5.2
Stable tag: 0.9.3
Tested up to: 6.7.1
Stable tag: 0.10.0
Requires PHP: 5.2.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -97,6 +97,10 @@ This is a shortcode for log out button.

== Changelog ==

= 0.10.0 =
* update tested version
* feedback from wordfence

= 0.9.3 =
* update css wording

Expand Down

0 comments on commit eea2d65

Please sign in to comment.