diff --git a/wp-admin/css/wp-admin.css b/wp-admin/css/wp-admin.css index 8cb40c93d5..1bbaafb293 100644 --- a/wp-admin/css/wp-admin.css +++ b/wp-admin/css/wp-admin.css @@ -2685,8 +2685,52 @@ th.asc:hover span.sorting-indicator { padding: 0 0 .2em 1px; } -span.post-state-format { - font-weight: normal; +a.post-state-format { + overflow: hidden; + display: inline-block; + vertical-align: middle; + height: 16px; + width: 16px; + margin-right: 5px; + background-image: url(../images/post-formats.png); + background-repeat: no-repeat; + text-indent: -999em; +} + +a.post-state-format.format-image { + background-position: -40px -8px; +} + +a.post-state-format.format-gallery { + background-position: -72px -8px; +} + +a.post-state-format.format-audio { + background-position: -104px -8px; +} + +a.post-state-format.format-video { + background-position: -135px -8px; +} + +a.post-state-format.format-chat { + background-position: -168px -8px; +} + +a.post-state-format.format-status { + background-position: -200px -8px; +} + +a.post-state-format.format-aside { + background-position: -232px -8px; +} + +a.post-state-format.format-quote { + background-position: -264px -8px; +} + +a.post-state-format.format-link { + background-position: -296px -8px; } @@ -9074,6 +9118,11 @@ a.widget-control-edit { background-size: 16px 16px; } + a.post-state-format { + background-image: url(../images/post-formats-2x.png); + background-size: 320px 32px; + } + th .comment-grey-bubble { background-image: url('../images/comment-grey-bubble-2x.png'); background-size: 12px 12px; diff --git a/wp-admin/images/post-formats-2x.png b/wp-admin/images/post-formats-2x.png new file mode 100644 index 0000000000..9b1b950e01 Binary files /dev/null and b/wp-admin/images/post-formats-2x.png differ diff --git a/wp-admin/images/post-formats.png b/wp-admin/images/post-formats.png new file mode 100644 index 0000000000..1af1ddf308 Binary files /dev/null and b/wp-admin/images/post-formats.png differ diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index b16b1e7bcc..2e90a0093a 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -259,9 +259,6 @@ class WP_Posts_List_Table extends WP_List_Table { if ( post_type_supports( $post_type, 'author' ) ) $posts_columns['author'] = __( 'Author' ); - if ( post_type_supports( $post_type, 'post-formats' ) ) - $posts_columns['format'] = _x( 'Format', 'post format' ); - $taxonomies = array(); $taxonomies = get_object_taxonomies( $post_type, 'objects' ); @@ -541,6 +538,13 @@ class WP_Posts_List_Table extends WP_List_Table { $pad = str_repeat( '— ', $level ); echo "