From e3ac341f2462829be6672bca5986534828e1e8f3 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 16 Jan 2015 17:41:50 +0000 Subject: [PATCH] Add 2 noop methods to `WP_List_Table`: `->column_default()` and `->column_cb()`. `WP_List_Table` is essentially an `abstract` class. Some of its methods throw `die()` warnings if they aren't overridden in a child class. These noop methods wouldn't be `abstract`, because they are not required in subclasses. However, `WP_List_Table` can call these methods in its own method, `->single_row_columns()`, whether a subclass defined them or not. See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@31210 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-list-table.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-admin/includes/class-wp-list-table.php b/src/wp-admin/includes/class-wp-list-table.php index 544408807e..db3471f2e9 100644 --- a/src/wp-admin/includes/class-wp-list-table.php +++ b/src/wp-admin/includes/class-wp-list-table.php @@ -1033,6 +1033,10 @@ class WP_List_Table { echo ''; } + public function column_default( $item, $column_name ) {} + + public function column_cb( $item ) {} + /** * Generates the columns for a single row of the table *