File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class AJAX {
3232 /**
3333 * The single instance of the class.
3434 *
35- * @var AJAX
35+ * @var AJAX|null
3636 */
3737 private static ?AJAX $ instance = null ;
3838
Original file line number Diff line number Diff line change 3333/**
3434 * Check if the class `Table` is defined, and if not, define it.
3535 */
36- if ( ! class_exists ( __NAMESPACE__ . '\\Table ' ) ) :
36+ if ( ! class_exists ( __NAMESPACE__ . '\\List_Table ' ) ) :
3737 /**
3838 * List_Table class for custom post types.
3939 *
4040 * Extends the WP_List_Table class to provide a custom table view for a specific post type,
4141 * including support for custom columns, sorting, and actions.
4242 */
43- class Table extends WP_List_Table {
43+ class List_Table extends WP_List_Table {
4444
4545 /**
4646 * Number of results to show per page.
Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ public function display() {
340340 return false ; // Stop execution if there are validation errors
341341 }
342342
343- $ table = new Table ( [
343+ $ table = new List_Table ( [
344344 'post_type ' => $ this ->post_type ,
345345 'columns ' => $ this ->column_callbacks ,
346346 'per_page ' => $ this ->per_page
You can’t perform that action at this time.
0 commit comments