Skip to content

Commit

Permalink
🚀 RELEASE: v1.2.0 Update
Browse files Browse the repository at this point in the history
Merge pull request #5 from warengonzaga/dev
  • Loading branch information
warengonzaga authored Apr 21, 2022
2 parents ba6627f + 54774d2 commit c20633b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To be able to start using this plugin just [download the latest release here](ht
Simply copy the shortcode below and paste it to the location of your copyright notice by default on your site's footer.

```php
[wp_uyf]
[uyf_wp]
```

It will appear like this...
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: simple, basic, update, footer, shortcodes
Requires at least: 5.0
Tested up to: 5.9
Requires PHP: 5.6
Stable tag: 1.1.2
Stable tag: 1.2.0
License: GPLv3
License URI: https://opensource.org/licenses/GPL-3.0

Expand All @@ -19,7 +19,7 @@ Simple, lightweight, and free WordPress shortcode plugin for you to use in your

Simply copy the shortcode below and paste it to the location of your copyright notice by default on your site's footer.

`[wp_uyf]`
`[uyf_wp]`

It will appear like this...

Expand Down
13 changes: 5 additions & 8 deletions update-your-footer-wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
* 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.4
* Version: 1.2.0
* Author: Waren Gonzaga
* Author URI: https://warengonzaga.com
*/

/**
* WP Update Your Footer
* Update Your Footer WP
*/

// prevent direct access
Expand All @@ -22,12 +22,9 @@ function update_your_footer($atts) {
$site_url = get_bloginfo('url');
$site_name = get_bloginfo('name');

// set footer contents
$footer_content = 'Copyright &copy; ' . esc_html( $year ) . ' <a href="' . esc_url( $site_url ) . '">' . esc_html( $site_name ) . '</a>, All Rights Reserved.';

// output footer contents
return $footer_content;
// output data
return 'Copyright &copy; ' . esc_html( $year ) . ' <a href="' . esc_url( $site_url ) . '">' . esc_html( $site_name ) . '</a>, All Rights Reserved.';
}

// wordpress hook
add_shortcode('wp_uyf', 'update_your_footer');
add_shortcode('uyf_wp', 'update_your_footer');

0 comments on commit c20633b

Please sign in to comment.