Skip to content

Commit

Permalink
Merge pull request #33 from circuscode/develop
Browse files Browse the repository at this point in the history
Version 0.19
  • Loading branch information
circuscode authored Apr 25, 2024
2 parents 9fa8f64 + b6cc96b commit 6b9d74f
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 12 deletions.
2 changes: 1 addition & 1 deletion hdfys_display.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function hdfys() {
$line=hdfys_get_anything();

// Output
echo "<p class='admin-hdfys'>".$line."</p>";
echo "<p class='admin-hdfys'>".esc_html($line)."</p>";
}
}
add_action( 'admin_notices', 'hdfys' );
Expand Down
2 changes: 1 addition & 1 deletion hdfys_gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function hdfys_gutenberg_block() {
$gutenberg_line = hdfys_get_anything();

// Add HTML Markup
$gutenberg_output = '<p class="hdfys gutenberg-block">'. $gutenberg_line .'</p>';
$gutenberg_output = '<p class="hdfys gutenberg-block">'.esc_html($gutenberg_line).'</p>';

// Process Filter
$gutenberg_output=apply_filters( 'hdfys_output_filter', $gutenberg_output );
Expand Down
2 changes: 1 addition & 1 deletion hdfys_installation.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function hdfys_activate () {
/* Initialize Settings */
add_option('hdfys_activated',"1");
add_option('hdfys_song',"");
add_option('hdfys_version', "18");
add_option('hdfys_version', "19");
add_option('widget_hdfys_widget');
add_option('hdfys_admin_lyric',"1");
add_option('hdfys_text_updated',"0");
Expand Down
2 changes: 1 addition & 1 deletion hdfys_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function hdfys_options() {
*/

function hdfys_options_display_songtext() {
echo '<textarea style="width:600px;height:400px;" class="regular-text" type="text" name="hdfys_song" id="hdfys_song">'. get_option('hdfys_song') .'</textarea>';
echo '<textarea style="width:600px;height:400px;" class="regular-text" type="text" name="hdfys_song" id="hdfys_song">'.esc_textarea( get_option('hdfys_song')) .'</textarea>';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion hdfys_shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

function hdfys_shortcode() {
$shortcode_line=hdfys_get_anything();
$hdfys_shortcode_output= '<p class="hdfys shortcode">'. $shortcode_line .'</p>';
$hdfys_shortcode_output= '<p class="hdfys shortcode">'.esc_html($shortcode_line).'</p>';
$hdfys_shortcode_output=apply_filters( 'hdfys_output_filter', $hdfys_shortcode_output );
return $hdfys_shortcode_output;
}
Expand Down
2 changes: 1 addition & 1 deletion hdfys_templatetag.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

function hello_dolly_for_your_song() {
$hdfys_template_tag_line = hdfys_get_anything();
$hdfys_template_tag_output='<div class="hdfys templatetag">'. $hdfys_template_tag_line .'</div>';
$hdfys_template_tag_output='<div class="hdfys templatetag">'. esc_html($hdfys_template_tag_line) .'</div>';
$hdfys_template_tag_output=apply_filters( 'hdfys_output_filter', $hdfys_template_tag_output );
echo $hdfys_template_tag_output;
}
Expand Down
4 changes: 4 additions & 0 deletions hdfys_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ function hdfys_update () {
if($hdfys_previous_version==17) {
update_option('hdfys_version','18');
}
/* Update Process Version 0.19 */
if($hdfys_previous_version==18) {
update_option('hdfys_version','19');
}

}
add_action( 'plugins_loaded', 'hdfys_update' );
Expand Down
4 changes: 2 additions & 2 deletions hdfys_widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public function widget( $args, $instance ) {
echo '<aside class="widget hdfys">';
echo '<h3 class="widget-title hdfys">';
if ( ! empty( $title ) )
echo $title;
echo esc_html($title);
echo '</h3>';
echo '<p class="widget-hdfys">'.$widget_line.'</p>';
echo '<p class="widget-hdfys">'.esc_html($widget_line).'</p>';
echo '</aside>';
}

Expand Down
2 changes: 1 addition & 1 deletion hellodollyforyoursong.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: Hello Dolly For Your Song
Plugin URI: https://www.unmus.de/wordpress-plugin-hello-dolly-for-your-song/
Description: This simple plugin shows a random line of any text in your blog.
Version: 0.18
Version: 0.19
Author: Marco Hitschler
Author URI: https://www.unmus.de/
License: GPL3
Expand Down
7 changes: 6 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ This project is licensed under the GPL3 License.

## Changelog

### 0.19

* april 2024
* Security: Echo Escaping added

### 0.18

* april 2023
Expand Down Expand Up @@ -269,4 +274,4 @@ This project is licensed under the GPL3 License.
### 0.1

* 3 may 2013
* Running version
* Running version
11 changes: 9 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: unmus, jordansilaen
Tags: hello world, love, random, learning wordpress, admin
Requires at least: 5.2
Requires PHP: 7.0
Tested up to: 6.2
Stable tag: 0.18
Tested up to: 6.5.2
Stable tag: 0.19
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -101,6 +101,10 @@ Several admin pages like settings are excluded, because some plugins do not use

== Changelog ==

= 0.19 =
* april 2024
* Security: Echo Escaping added

= 0.18 =
* april 2023
* Bugfix: LastChar is blank
Expand Down Expand Up @@ -203,6 +207,9 @@ Several admin pages like settings are excluded, because some plugins do not use

== Upgrade Notice ==

= 0.19 =
This version is a security release (no new features, but more secure code).

= 0.18 =
This version is a maintenance release (no new features, but bugfixes).

Expand Down

0 comments on commit 6b9d74f

Please sign in to comment.