Ticket #15421: display-post-states.diff
File display-post-states.diff, 1.3 KB (added by , 15 years ago) |
---|
-
wp-admin/includes/template.php
1598 1598 $post_status = ''; 1599 1599 1600 1600 if ( !empty($post->post_password) ) 1601 $post_states[ ] = __('Password protected');1601 $post_states['protected'] = __('Password protected'); 1602 1602 if ( 'private' == $post->post_status && 'private' != $post_status ) 1603 $post_states[ ] = __('Private');1603 $post_states['private'] = __('Private'); 1604 1604 if ( 'draft' == $post->post_status && 'draft' != $post_status ) 1605 $post_states[ ] = __('Draft');1605 $post_states['draft'] = __('Draft'); 1606 1606 if ( 'pending' == $post->post_status && 'pending' != $post_status ) 1607 1607 /* translators: post state */ 1608 $post_states[ ] = _x('Pending', 'post state');1608 $post_states['pending'] = _x('Pending', 'post state'); 1609 1609 if ( is_sticky($post->ID) ) 1610 $post_states[ ] = __('Sticky');1610 $post_states['sticky'] = __('Sticky'); 1611 1611 if ( get_post_format( $post->ID ) ) 1612 $post_states[ ] = '<span>[</span>' . get_post_format_string( get_post_format( $post->ID ) ) . '<span>]</span>';1612 $post_states['post_format'] = '<span>[</span>' . get_post_format_string( get_post_format( $post->ID ) ) . '<span>]</span>'; 1613 1613 1614 1614 $post_states = apply_filters( 'display_post_states', $post_states ); 1615 1615