Skip to content

Commit 3179c00

Browse files
davidsherlockdavidsherlock
authored andcommitted
Various improvements
1 parent 50778fd commit 3179c00

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/AJAX.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/Table.php renamed to src/List_Table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
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.

src/Register.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)