Skip to content

Commit

Permalink
4.0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelbart committed Sep 5, 2019
1 parent d1064b2 commit 8d5e856
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
14 changes: 7 additions & 7 deletions core/classes/class-helpful-helper-stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public static function getStatsWeek( $year ) {

if ( ! $results ) {
return [
'status' => 'error',
'status' => 'error',
'message' => __( 'No entries found', 'helpful' ),
];
}
Expand Down Expand Up @@ -587,7 +587,7 @@ public static function getStatsYear( $year ) {
'backgroundColor' => self::$red,
],
],
'labels' => $labels,
'labels' => $labels,
],
'options' => [
'scales' => [
Expand Down Expand Up @@ -752,7 +752,7 @@ public static function getStatsTotal() {
],
'labels' => [
__( 'Pro', 'helpful' ),
__( 'Contra', 'helpful' )
__( 'Contra', 'helpful' ),
],
],
'options' => [
Expand Down Expand Up @@ -821,7 +821,7 @@ public static function getMostHelpful( $limit = null ) {
'time' => sprintf(
/* translators: %s time difference */
__( 'Published %s ago', 'helpful' ),
human_time_diff( date_i18n( get_the_date( 'U', $post_id ) ), date_i18n( 'U' ) )
human_time_diff( get_the_date( 'U', $post_id ), date_i18n( 'U' ) )
),
];
endforeach;
Expand Down Expand Up @@ -898,7 +898,7 @@ public static function getLeastHelpful( $limit = null ) {
'time' => sprintf(
/* translators: %s time difference */
__( 'Published %s ago', 'helpful' ),
human_time_diff( date_i18n( get_the_date( 'U', $post_id ) ), date_i18n( 'U' ) )
human_time_diff( get_the_date( 'U', $post_id ), date_i18n( 'U' ) )
),
];
endforeach;
Expand Down Expand Up @@ -958,7 +958,7 @@ public static function getRecentlyPro( $limit = null ) {
'time' => sprintf(
/* translators: %s time difference */
__( 'Submitted %s ago', 'helpful' ),
human_time_diff( date_i18n( $timestamp ), date_i18n( 'U' ) )
human_time_diff( $timestamp, date_i18n( 'U' ) )
),
];
endforeach;
Expand Down Expand Up @@ -1014,7 +1014,7 @@ public static function getRecentlyContra( $limit = null ) {
'time' => sprintf(
/* translators: %s time difference */
__( 'Submitted %s ago', 'helpful' ),
human_time_diff( date_i18n( $timestamp ), date_i18n( 'U' ) )
human_time_diff( $timestamp, date_i18n( 'U' ) )
),
];
endforeach;
Expand Down
4 changes: 2 additions & 2 deletions helpful.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Helpful
* Description: Add a fancy feedback form under your posts or post-types and ask your visitors a question. Give them the abbility to vote with yes or no.
* Version: 4.0.21
* Version: 4.0.22
* Author: Pixelbart
* Author URI: https://pixelbart.de
* Text Domain: helpful
Expand All @@ -17,7 +17,7 @@

define( 'HELPFUL_FILE', __FILE__ );
define( 'HELPFUL_PATH', plugin_dir_path( HELPFUL_FILE ) );
define( 'HELPFUL_VERSION', '4.0.21' );
define( 'HELPFUL_VERSION', '4.0.22' );
define( 'HELPFUL_PHP_MIN', '5.4.0' );

/* Include config */
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: helpful, poll, feedback, reviews, vote, review, voting
Requires at least: 4.6
Tested up to: 5.2
Requires PHP: 5.4.0
Stable tag: 4.0.21
Stable tag: 4.0.22
License: MIT License
License URI: https://opensource.org/licenses/MIT

Expand Down Expand Up @@ -86,6 +86,10 @@ Switch to the Helpful settings and click on the System tab. There you will find

== Changelog ==

= 4.0.22 =
* Fixed another bug in the Dashboard widget related to the date format.
* Date: 05.09.2019

= 4.0.21 =
* Fixed a bug in the dashboard widget where it was not clear for a function whether a variable was an integer or not.
* The CSS class for the contra button is now `.helpful-contra` and no longer `.helpful-pro` (Thx to [derunterstrich](https://github.com/derunterstrich)).
Expand Down

0 comments on commit 8d5e856

Please sign in to comment.