diff --git a/obvious-post-states.css b/obvious-post-states.css index c066f08..c121b62 100644 --- a/obvious-post-states.css +++ b/obvious-post-states.css @@ -33,7 +33,6 @@ background: #cf4944; } td.post-title strong { - color: rgba(255,255,255,0); display: inline; } .row-actions { diff --git a/obvious-post-states.php b/obvious-post-states.php index 30ded17..6dc4701 100644 --- a/obvious-post-states.php +++ b/obvious-post-states.php @@ -5,7 +5,7 @@ Plugin Name: Obvious Post States Plugin URI: https://github.com/ryansommers/slate Description: Make your WordPress post state text (draft, pending, sticky, etc) stand out. Author: Ryan Sommers -Version: 1.0.1 +Version: 1.0.2 Author URI: http://ryansommers.com */ @@ -15,4 +15,19 @@ function obvious_post_states_files() { } add_action( 'admin_enqueue_scripts', 'obvious_post_states_files' ); add_action( 'login_enqueue_scripts', 'obvious_post_states_files' ); + +// Remove the hyphen before the post state +add_filter( 'display_post_states', 'obvious_post_states_post_state' ); +function obvious_post_states_post_state( $post_states ) { + if ( !empty($post_states) ) { + $state_count = count($post_states); + $i = 0; + foreach ( $post_states as $state ) { + ++$i; + ( $i == $state_count ) ? $sep = '' : $sep = ''; + echo "$state$sep"; + } + } +} + ?> diff --git a/readme.txt b/readme.txt index d9ab688..865adb9 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i Tags: post state, drafts, pending, sticky, password protected, ryan sommers. Requires at least: 4.0 Tested up to: 4.0 -Stable tag: 1.0.1 +Stable tag: 1.0.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -38,6 +38,9 @@ The post state text (draft, pending, etc) will be moved to the beginning of the == Changelog == += 1.0.2 = +* Fixed a bug regarding hidden post titles for Subscriber roles. + = 1.0.1 = * Added compatibility with the Slate admin theme plugin. @@ -46,5 +49,5 @@ The post state text (draft, pending, etc) will be moved to the beginning of the == Upgrade Notice == -= 1.0.1 = -* Added compatibility with the Slate admin theme plugin. += 1.0.2 = +* Fixed a bug regarding hidden post titles for Subscriber roles.