mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
In WP_List_Table, make a new public method, ->get_primary_column(), and revert [34101] due to BC issues.
Fixes #33854. git-svn-id: https://develop.svn.wordpress.org/trunk@34128 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -888,6 +888,10 @@ class WP_List_Table {
|
||||
return $column;
|
||||
}
|
||||
|
||||
public function get_primary_column() {
|
||||
return $this->get_primary_column_name();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name of the primary column.
|
||||
*
|
||||
@@ -896,7 +900,7 @@ class WP_List_Table {
|
||||
*
|
||||
* @return string The name of the primary column.
|
||||
*/
|
||||
public function get_primary_column_name() {
|
||||
protected function get_primary_column_name() {
|
||||
$columns = $this->get_columns();
|
||||
$default = $this->get_default_primary_column_name();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user