Browse Source

Version 1.0.2

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

Signed-off-by: Ryan <ryan@ryansommers.com>
main
Ryan 9 years ago
parent
commit
2010ad58f0
  1. 1
      obvious-post-states.css
  2. 17
      obvious-post-states.php
  3. 9
      readme.txt

1
obvious-post-states.css

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

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

9
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.
Loading…
Cancel
Save