Skip to content

Commit cd95601

Browse files
committed
fix php8 warning, fixes #123
1 parent 5852ae8 commit cd95601

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Change Log
22
All notable changes to this project will be documented in this file, formatted via [this recommendation](http://keepachangelog.com/).
33

4+
## [1.4.1] = 2022-12-19
5+
### Fixed
6+
- Fix PHP 8 warning, see #123
7+
48
## [1.4.0] = 2022-05-20
59
### Added
610
- AMP support, see #75

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
**Contributors:** jaredatch, billerickson
66
**Tags:** sharing, share buttons, social buttons, share counts, social, facebook, linkedin, pinterest, twitter
77
**Requires at least:** 4.6
8-
**Tested up to:** 6.0
9-
**Stable tag:** 1.4.0
8+
**Tested up to:** 6.1
9+
**Stable tag:** 1.4.1
1010
**Requires PHP:** 5.6
1111
**License:** GPLv2 or later
1212
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

includes/class-shared-counts-core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ public function round_count( $num = 0, $n = 0 ) {
339339
*
340340
* @return bool
341341
*/
342-
public function needs_updating( $last_updated = false, $post_date, $post_id ) {
342+
public function needs_updating( $last_updated = false, $post_date = false, $post_id = false ) {
343343

344344
if ( ! $last_updated ) {
345345
return true;

readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Contributors: jaredatch, billerickson
33
Tags: sharing, share buttons, social buttons, share counts, social, facebook, linkedin, pinterest, twitter
44
Requires at least: 4.6
5-
Tested up to: 6.0
6-
Stable tag: 1.4.0
5+
Tested up to: 6.1
6+
Stable tag: 1.4.1
77
Requires PHP: 5.6
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html

shared-counts.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin URI: https://sharedcountsplugin.com
55
* Description: Social sharing buttons that look great and keep your site loading fast.
66
* Author: Bill Erickson & Jared Atchison
7-
* Version: 1.4.0
7+
* Version: 1.4.1
88
*
99
* Shared Counts is free software: you can redistribute it and/or modify
1010
* it under the terms of the GNU General Public License as published by
@@ -35,7 +35,7 @@
3535
* Basic plugin constants.
3636
*/
3737
// Version.
38-
define( 'SHARED_COUNTS_VERSION', '1.4.0' );
38+
define( 'SHARED_COUNTS_VERSION', '1.4.1' );
3939

4040
// Directory path.
4141
define( 'SHARED_COUNTS_DIR', plugin_dir_path( __FILE__ ) );

0 commit comments

Comments
 (0)