From 85e5b498bd50f6e1df3832d9d8ffbfc1660e3b82 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 4 Oct 2018 14:52:09 +0100 Subject: [PATCH] Add the post type and taxonomy name as a class attribute to the dashboard glance entries. Fixes #97. --- src/class-extended-cpt-admin.php | 2 +- src/class-extended-taxonomy-admin.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/class-extended-cpt-admin.php b/src/class-extended-cpt-admin.php index a933553..cec03e5 100644 --- a/src/class-extended-cpt-admin.php +++ b/src/class-extended-cpt-admin.php @@ -441,7 +441,7 @@ public function glance_items( array $items ) : array { $url = add_query_arg( [ 'post_type' => $this->cpt->post_type, ], admin_url( 'edit.php' ) ); - $text = '' . esc_html( $num . ' ' . $text ) . ''; + $text = '' . esc_html( $num . ' ' . $text ) . ''; # Go! $items[] = $text; diff --git a/src/class-extended-taxonomy-admin.php b/src/class-extended-taxonomy-admin.php index da90443..f5caa2f 100644 --- a/src/class-extended-taxonomy-admin.php +++ b/src/class-extended-taxonomy-admin.php @@ -548,7 +548,7 @@ public function glance_items( array $items ) { 'taxonomy' => $this->taxo->taxonomy, 'post_type' => reset( $taxonomy->object_type ), ], admin_url( 'edit-tags.php' ) ); - $text = '' . esc_html( $num . ' ' . $text ) . ''; + $text = '' . esc_html( $num . ' ' . $text ) . ''; # Go! $items[] = $text;