Version 1.0.2

* Fixed a bug regarding hidden post titles for Subscriber roles.

Signed-off-by: Ryan <ryan@ryansommers.com>
This commit is contained in:
Ryan 2014-12-19 20:35:30 -08:00
parent ff165a4a94
commit 2010ad58f0
3 changed files with 22 additions and 5 deletions

View File

@ -33,7 +33,6 @@
background: #cf4944;
}
td.post-title strong {
color: rgba(255,255,255,0);
display: inline;
}
.row-actions {

View File

@ -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 "<span class='post-state'>$state$sep</span>";
}
}
}
?>

View File

@ -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.