mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
In WP_List_Table
, make a new public
method, ->get_primary_column()
, and revert [34101] due to BC issues.
Fixes #33854. Built from https://develop.svn.wordpress.org/trunk@34128 git-svn-id: http://core.svn.wordpress.org/trunk@34096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4d33644373
commit
b2a30103ae
@ -888,6 +888,10 @@ class WP_List_Table {
|
|||||||
return $column;
|
return $column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function get_primary_column() {
|
||||||
|
return $this->get_primary_column_name();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the name of the primary column.
|
* Gets the name of the primary column.
|
||||||
*
|
*
|
||||||
@ -896,7 +900,7 @@ class WP_List_Table {
|
|||||||
*
|
*
|
||||||
* @return string The name of the primary column.
|
* @return string The name of the primary column.
|
||||||
*/
|
*/
|
||||||
public function get_primary_column_name() {
|
protected function get_primary_column_name() {
|
||||||
$columns = $this->get_columns();
|
$columns = $this->get_columns();
|
||||||
$default = $this->get_default_primary_column_name();
|
$default = $this->get_default_primary_column_name();
|
||||||
|
|
||||||
|
@ -252,7 +252,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
|||||||
*
|
*
|
||||||
* @return string Unalterable name of the primary column name, in this case, 'name'.
|
* @return string Unalterable name of the primary column name, in this case, 'name'.
|
||||||
*/
|
*/
|
||||||
public function get_primary_column_name() {
|
protected function get_primary_column_name() {
|
||||||
return 'name';
|
return 'name';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -724,7 +724,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
|||||||
*
|
*
|
||||||
* @return string Unalterable name for the primary column, in this case, 'name'.
|
* @return string Unalterable name for the primary column, in this case, 'name'.
|
||||||
*/
|
*/
|
||||||
public function get_primary_column_name() {
|
protected function get_primary_column_name() {
|
||||||
return 'name';
|
return 'name';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34127';
|
$wp_version = '4.4-alpha-34128';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user