Skip to content

Commit

Permalink
Merge branch 'release/1.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryJones committed Aug 12, 2015
2 parents 8c380a5 + fa6c740 commit 069ceb7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).

_No changes._

## [1.0.2] - 2015-08-12

- Fix regression in 1.0.1 for labels.

## [1.0.1] - 2015-08-12

- Added PHP 7 compatibility.
Expand All @@ -17,4 +21,5 @@ _No changes._
- Initial release.

[unreleased]: https://github.com/GaryJones/Gamajo-Dashboard-Glancer/compare/1.0.0...HEAD
[1.0.2]: https://github.com/GaryJones/Gamajo-Dashboard-Glancer/compare/1.0.1...1.0.2
[1.0.1]: https://github.com/GaryJones/Gamajo-Dashboard-Glancer/compare/1.0.0...1.0.1
4 changes: 2 additions & 2 deletions class-gamajo-dashboard-glancer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @link http://gamajo.com/dashboard-glancer
* @copyright 2013 Gary Jones, Gamajo Tech
* @license GPL-2.0+
* @version 1.0.1
* @version 1.0.2
*/

/**
Expand Down Expand Up @@ -144,7 +144,7 @@ protected function get_single_item( array $item ) {
*/
protected function get_label( array $item, $count ) {
$post_type_object = get_post_type_object( $item['type'] );
$labels = $post->labels;
$labels = $post_type_object->labels;
$label = 1 === $count ? $labels->singular_name : $labels->name;

// Append status for non-publish statuses for disambiguation.
Expand Down
2 changes: 1 addition & 1 deletion class-gamajo-dashboard-rightnow.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @link http://gamajo.com/dashboard-glancer
* @copyright 2013 Gary Jones, Gamajo Tech
* @license GPL-2.0+
* @version 1.0.1
* @version 1.0.2
*/

/**
Expand Down

0 comments on commit 069ceb7

Please sign in to comment.