Skip to content

Commit

Permalink
Merge pull request #33 from Emilia-Capital/jdv/fix-view-other-terms
Browse files Browse the repository at this point in the history
Reinstate view action link for other taxonomies
  • Loading branch information
aristath authored Jul 2, 2024
2 parents 3d1d71c + 50c20c4 commit cdc76e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function register_hooks() {
\add_action( 'admin_init', [ $this, 'register_settings' ] );
\add_filter( 'manage_edit-post_tag_columns', [ $this, 'add_tag_columns' ] );
\add_filter( 'manage_post_tag_custom_column', [ $this, 'manage_tag_columns' ], 10, 3 );
\add_filter( 'tag_row_actions', [ $this, 'remove_view_action' ], 10, 2 );
\add_filter( 'post_tag_row_actions', [ $this, 'remove_view_action' ], 10, 2 );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/test-class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function test_register_hooks() {
$this->assertSame( 10, has_action( 'admin_init', [ self::$class_instance, 'register_settings' ] ) );
$this->assertSame( 10, has_action( 'manage_edit-post_tag_columns', [ self::$class_instance, 'add_tag_columns' ] ) );
$this->assertSame( 10, has_action( 'manage_post_tag_custom_column', [ self::$class_instance, 'manage_tag_columns' ] ), 10, 3 );
$this->assertSame( 10, has_action( 'tag_row_actions', [ self::$class_instance, 'remove_view_action' ] ), 10, 2 );
$this->assertSame( 10, has_action( 'post_tag_row_actions', [ self::$class_instance, 'remove_view_action' ] ), 10, 2 );
}

/**
Expand Down

0 comments on commit cdc76e7

Please sign in to comment.