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:
parent
ff165a4a94
commit
2010ad58f0
@ -33,7 +33,6 @@
|
|||||||
background: #cf4944;
|
background: #cf4944;
|
||||||
}
|
}
|
||||||
td.post-title strong {
|
td.post-title strong {
|
||||||
color: rgba(255,255,255,0);
|
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
.row-actions {
|
.row-actions {
|
||||||
|
@ -5,7 +5,7 @@ Plugin Name: Obvious Post States
|
|||||||
Plugin URI: https://github.com/ryansommers/slate
|
Plugin URI: https://github.com/ryansommers/slate
|
||||||
Description: Make your WordPress post state text (draft, pending, sticky, etc) stand out.
|
Description: Make your WordPress post state text (draft, pending, sticky, etc) stand out.
|
||||||
Author: Ryan Sommers
|
Author: Ryan Sommers
|
||||||
Version: 1.0.1
|
Version: 1.0.2
|
||||||
Author URI: http://ryansommers.com
|
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( 'admin_enqueue_scripts', 'obvious_post_states_files' );
|
||||||
add_action( 'login_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>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -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.
|
Tags: post state, drafts, pending, sticky, password protected, ryan sommers.
|
||||||
Requires at least: 4.0
|
Requires at least: 4.0
|
||||||
Tested up to: 4.0
|
Tested up to: 4.0
|
||||||
Stable tag: 1.0.1
|
Stable tag: 1.0.2
|
||||||
License: GPLv2 or later
|
License: GPLv2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
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 ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 1.0.2 =
|
||||||
|
* Fixed a bug regarding hidden post titles for Subscriber roles.
|
||||||
|
|
||||||
= 1.0.1 =
|
= 1.0.1 =
|
||||||
* Added compatibility with the Slate admin theme plugin.
|
* 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 ==
|
== Upgrade Notice ==
|
||||||
|
|
||||||
= 1.0.1 =
|
= 1.0.2 =
|
||||||
* Added compatibility with the Slate admin theme plugin.
|
* Fixed a bug regarding hidden post titles for Subscriber roles.
|
||||||
|
Loading…
Reference in New Issue
Block a user