From 59d64d35a8fb1be8cf0ed6b6196525a63dcccec8 Mon Sep 17 00:00:00 2001 From: Waren Gonzaga Date: Thu, 21 Apr 2022 16:38:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9E=20FIX:=20add=20content=20escap?= =?UTF-8?q?ing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- update-your-footer-wp.php | 19 +++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 496ee2c..4f60222 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.DS_Store \ No newline at end of file +.DS_Store +.dccache \ No newline at end of file diff --git a/update-your-footer-wp.php b/update-your-footer-wp.php index 1a553ce..f9320a7 100644 --- a/update-your-footer-wp.php +++ b/update-your-footer-wp.php @@ -2,8 +2,8 @@ /** * Plugin Name: Update Your Footer WP * Plugin URI: https://github.com/warengonzaga/update-your-footer-wp -* Description: A WordPress shortcode plugin to automagically update your copyright notice year. Simple and lightweight, no annoying ads and fancy settings. -* Version: 1.1.2 +* Description: Simple and lightweight WordPress shortcode plugin to automagically update your footer year notice. No annoying ads! +* Version: 1.1.3 * Author: Waren Gonzaga * Author URI: https://warengonzaga.com */ @@ -16,14 +16,17 @@ defined( 'ABSPATH' ) or die( "Restricted Access!" ); function update_your_footer($atts) { - $copyright = 'Copyright ©'; + + // wp data $year = date('Y'); - $sitename = '' . get_bloginfo('name') . ''; - $all_rights_reserved = 'All Rights Reserved'; - $notice = $copyright . ' ' . $year . ' ' . $sitename . ', ' . $all_rights_reserved . '.'; + $site_url = get_bloginfo('url'); + $site_name = get_bloginfo('name'); + + // set footer contents + $footer_content = 'Copyright © ' . esc_html( $year ) . ' ' . esc_html( $site_name ) . ', All Rights Reserved.'; - // final notice - return $notice; + // output footer contents + return $footer_content; } // wordpress hook From 9487c3663930cf95f793d933fb7dd383a720e235 Mon Sep 17 00:00:00 2001 From: Waren Gonzaga Date: Thu, 21 Apr 2022 16:40:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E2=98=95=20CHORE:=20update=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update-your-footer-wp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-your-footer-wp.php b/update-your-footer-wp.php index f9320a7..bb3a864 100644 --- a/update-your-footer-wp.php +++ b/update-your-footer-wp.php @@ -3,7 +3,7 @@ * Plugin Name: Update Your Footer WP * Plugin URI: https://github.com/warengonzaga/update-your-footer-wp * Description: Simple and lightweight WordPress shortcode plugin to automagically update your footer year notice. No annoying ads! -* Version: 1.1.3 +* Version: 1.1.4 * Author: Waren Gonzaga * Author URI: https://warengonzaga.com */