Skip to content

Commit

Permalink
Merge pull request #12 from 10up/fix/10
Browse files Browse the repository at this point in the history
feat: use better icons and show editor name
  • Loading branch information
tlovett1 authored Oct 12, 2020
2 parents caf4194 + 217d15a commit 5db47f3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions includes/ConvertToBlocks/PostTypeColumnSupport.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ public function can_register() {
*/
public function update_post_columns( $columns ) {
$column_label = $this->get_editor_column_label();
$title_index = array_search( $title, $columns, true );

$editor_column = [
'editor' => $column_label,
];

$columns['editor'] = $column_label;

Expand Down Expand Up @@ -113,6 +108,11 @@ class="dashicons <?php echo esc_attr( $icon ); ?>"
title="<?php echo esc_attr( $title ); ?>"
>
</span>
<?php
if ( apply_filters( 'convert_to_blocks_show_admin_column_title', true ) ) {
printf( '<span class="txt">%s</span>', esc_attr( $title ) );
}
?>
<?php
}

Expand All @@ -132,7 +132,7 @@ public function get_editor_column_label() {
* @return string
*/
public function get_block_editor_column_icon() {
return apply_filters( 'convert_to_blocks_block_editor_column_icon', 'dashicons-wordpress' );
return apply_filters( 'convert_to_blocks_block_editor_column_icon', 'dashicons-columns' );
}

/**
Expand All @@ -142,7 +142,7 @@ public function get_block_editor_column_icon() {
* @return string
*/
public function get_classic_editor_column_icon() {
return apply_filters( 'convert_to_blocks_classic_editor_column_icon', 'dashicons-backup' );
return apply_filters( 'convert_to_blocks_classic_editor_column_icon', 'dashicons-media-document' );
}

/**
Expand Down

0 comments on commit 5db47f3

Please sign in to comment.