Skip to content

Commit

Permalink
Column::register_hooks(): bug fix
Browse files Browse the repository at this point in the history
 The `Column::quick_edit_remove_original()` method only expects one parameter, so no need to ask WP for 2.
  • Loading branch information
jrfnl committed Nov 20, 2023
1 parent 74a4312 commit c6ba6f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/column.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function register_hooks() {
\add_filter( "manage_{$enabled_post_type}_posts_columns", [ $this, 'add_original_column' ] );
\add_action( "manage_{$enabled_post_type}_posts_custom_column", [ $this, 'show_original_item' ], 10, 2 );
}
\add_action( 'quick_edit_custom_box', [ $this, 'quick_edit_remove_original' ], 10, 2 );
\add_action( 'quick_edit_custom_box', [ $this, 'quick_edit_remove_original' ] );
\add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue_scripts' ] );
\add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue_styles' ] );
}
Expand Down

0 comments on commit c6ba6f4

Please sign in to comment.