Skip to content

Commit 4d6b1a9

Browse files
Merge pull request #13 from patrickrobrecht/dev-v1.1.1
Version 1.1.1
2 parents e7efa9e + 28881e7 commit 4d6b1a9

File tree

7 files changed

+93
-61
lines changed

7 files changed

+93
-61
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
# Posts and Users Stats - Changelog
22
All notable changes to this WordPress plugin will be documented in this file.
33

4-
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## Version 1.1.1
8+
9+
### Changed
10+
* Updated libraries
11+
* Bugfix: Translate role names
12+
* Compatible with WordPress 5.0
13+
14+
715
## Version 1.1
816

917
### Changed

composer.lock

Lines changed: 29 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

posts-and-users-stats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Posts and Users Stats
44
* Plugin URI: https://patrick-robrecht.de/wordpress/
55
* Description: Statistics about the number of posts and users, provided as diagrams, tables and csv export.
6-
* Version: 1.1
6+
* Version: 1.1.1
77
* Author: Patrick Robrecht
88
* Author URI: https://patrick-robrecht.de/
99
* License: GPLv3

readme.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
Contributors: patrickrobrecht
33
Tags: dashboard, statistics
44
Requires at least: 4.4
5-
Tested up to: 4.9
5+
Tested up to: 5.0
66
Requires PHP: 5.6
7-
Stable tag: 1.1
7+
Stable tag: 1.1.1
88
License: GPLv3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -49,6 +49,11 @@ After the installation you can find the statistics as subpages of *Tools*.
4949

5050
If interested, please check up the [changelog at GitHub](https://github.com/patrickrobrecht/posts-and-users-stats#changelog).
5151

52+
= 1.1.1 =
53+
* Updated libraries
54+
* Bugfix: Translate role names
55+
* Compatible with WordPress 5.0
56+
5257
= 1.1 =
5358
* New charts library
5459

views/comments.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class="<?php posts_and_users_stats_echo_tab_class( $selected_tab == $tab_slug );
6161

6262
$per_date_string = __( 'Comments per Date', 'posts-and-users-stats' );
6363
$per_month_string = __( 'Comments per Month', 'posts-and-users-stats' );
64-
?>
64+
?>
6565
<nav>
6666
<?php if ( ! is_array( $comments_per_date ) || count( $comments_per_date ) <= 0 ) { ?>
6767
<p><?php esc_html_e( 'No approved comments found!', 'posts-and-users-stats' ); ?>
@@ -139,7 +139,7 @@ class="<?php posts_and_users_stats_echo_tab_class( $selected_tab == $tab_slug );
139139
} else {
140140
$count = 0;
141141
}
142-
?>
142+
?>
143143
<td class="number"><?php echo esc_html( $count ); ?></td>
144144
<?php } ?>
145145
<td class="number"><?php echo esc_html( $year_object->count ); ?></td>
@@ -151,7 +151,7 @@ class="<?php posts_and_users_stats_echo_tab_class( $selected_tab == $tab_slug );
151151
<?php
152152
foreach ( $comments_per_year as $year_object ) {
153153
$year = $year_object->year;
154-
?>
154+
?>
155155
<section>
156156
<h3 id="<?php echo esc_attr( $year ); ?>">
157157
<?php
@@ -189,7 +189,7 @@ class="<?php posts_and_users_stats_echo_tab_class( $selected_tab == $tab_slug );
189189
} else {
190190
$count = '&mdash;';
191191
}
192-
?>
192+
?>
193193
<td class="number"><?php echo esc_html( $count ); ?></td>
194194
<?php } ?>
195195
</tr>
@@ -204,14 +204,14 @@ class="<?php posts_and_users_stats_echo_tab_class( $selected_tab == $tab_slug );
204204
} else {
205205
$count = 0;
206206
}
207-
?>
207+
?>
208208
<td class="number"><strong><?php echo esc_html( $count ); ?></strong></td>
209209
<?php } ?>
210210
</tr>
211211
</tbody>
212212
</table>
213213
</section>
214-
<?php
214+
<?php
215215
} // end loop
216216
} // end if
217217
} else if ( 'author' == $selected_tab ) {
@@ -223,7 +223,7 @@ class="<?php posts_and_users_stats_echo_tab_class( $selected_tab == $tab_slug );
223223
GROUP BY author",
224224
OBJECT_K
225225
);
226-
?>
226+
?>
227227
<section>
228228
<div class="chart-container">
229229
<div class="chart-title">
@@ -281,7 +281,7 @@ class="<?php posts_and_users_stats_echo_tab_class( $selected_tab == $tab_slug );
281281
</table>
282282
</section>
283283

284-
<?php
284+
<?php
285285
} else if ( 'status' == $selected_tab ) {
286286
$comments_per_status = wp_count_comments();
287287

@@ -293,7 +293,7 @@ class="<?php posts_and_users_stats_echo_tab_class( $selected_tab == $tab_slug );
293293
'post-trashed' => __( 'Post trashed', 'posts-and-users-stats' ),
294294
'moderated' => __( 'Pending', 'posts-and-users-stats' ),
295295
);
296-
?>
296+
?>
297297
<section>
298298
<div class="chart-container">
299299
<div class="chart-title">

0 commit comments

Comments
 (0)