Skip to content

Commit 5e359d0

Browse files
committed
feat: update year examples to 2024
1 parent 7cad75f commit 5e359d0

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

readme.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ Install the plugin and activate it.
1212

1313
Set "from" to apply a range, after "from" year has passed.
1414

15-
// assuming current year is 2023
16-
[year] = 2023
15+
// assuming current year is 2024
16+
[year] = 2024
1717

18-
// assuming current year is 2023
19-
[year from="2023"] = 2023
18+
// assuming current year is 2024
19+
[year from="2024"] = 2024
2020

21-
// assuming current year is 2023
22-
[year from="1983"] = 1983-2023
21+
// assuming current year is 2024
22+
[year from="1983"] = 1983-2024
2323

2424
# Download
2525

@@ -29,18 +29,22 @@ https://github.com/rtpHarry/CurrentYearShortcode-WordPress
2929

3030
# Changelog
3131

32-
1.2.0 - 29th May 2023
32+
1.3.0 - 5th Jan 2024
33+
34+
- Update year examples to 2024
35+
36+
1.2.0 - 29th May 2023
3337

3438
- Update year examples to 2023
3539

36-
1.1.0 - 19th February 2022
40+
1.1.0 - 19th February 2022
3741

3842
- Added licence
3943
- Updated plugin meta
4044
- Added readme file
4145
- Initial public release
4246

43-
1.0.0 - 25th August 2021
47+
1.0.0 - 25th August 2021
4448

4549
- Internal release
4650

@@ -51,6 +55,6 @@ commercial projects.
5155

5256
# Author
5357

54-
Built by Matthew Harris of runthings.dev, copyright 2022-2023.
58+
Built by Matthew Harris of runthings.dev, copyright 2022-2024.
5559

5660
https://runthings.dev/

runthings-current-year-shortcode.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
/*
33
Plugin Name: Current Year Shortcode
44
Plugin URI: https://runthings.dev
5-
Description: Add a shortcode for displaying the current year as a range, usage: [year from="2023"]
5+
Description: Add a shortcode for displaying the current year as a range, usage: [year from="2024"]
66
Version: 1.2.0
77
Author: Matthew Harris, runthings.dev
88
Author URI: https://runthings.dev/
99
License: GPLv3 or later
1010
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1111
12-
Copyright 2022-2023 Matthew Harris
12+
Copyright 2022-2024 Matthew Harris
1313
1414
This program is free software; you can redistribute it and/or modify
1515
it under the terms of the GNU General Public License, version 2, as
@@ -35,14 +35,14 @@
3535
* Set "from" to apply a range, after "from" year has passed.
3636
*
3737
* @example
38-
* // assuming current year is 2023
39-
* [year] = 2023
38+
* // assuming current year is 2024
39+
* [year] = 2024
4040
* @example
41-
* // assuming current year is 2023
42-
* [year from="2022"] = 2023
41+
* // assuming current year is 2024
42+
* [year from="2024"] = 2024
4343
* @example
44-
* // assuming current year is 2023
45-
* [year from="1983"] = 1983-2023
44+
* // assuming current year is 2024
45+
* [year from="1983"] = 1983-2024
4646
*
4747
* @return {string} the current year or year range specified
4848
*/

0 commit comments

Comments
 (0)