Docs: Add missing description for the `display_rows()` method in list table classes.

Follow-up to [15491], [17002], [27301].

Props nikitasolanki1812, narenin, mukesh27, dd32, SergeyBiryukov.
Fixes #61670.
Built from https://develop.svn.wordpress.org/trunk@58745


git-svn-id: http://core.svn.wordpress.org/trunk@58147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2024-07-17 15:43:15 +00:00
parent 4538fa7498
commit 51d8a8ea62
12 changed files with 43 additions and 4 deletions

View File

@ -307,6 +307,11 @@ class WP_Links_List_Table extends WP_List_Table {
do_action( 'manage_link_custom_column', $column_name, $link->link_id );
}
/**
* Generates the list table rows.
*
* @since 3.1.0
*/
public function display_rows() {
foreach ( $this->items as $link ) {
$link = sanitize_bookmark( $link );

View File

@ -1718,7 +1718,7 @@ class WP_List_Table {
}
/**
* Generates the table rows.
* Generates the list table rows.
*
* @since 3.1.0
*/

View File

@ -708,6 +708,10 @@ class WP_Media_List_Table extends WP_List_Table {
}
/**
* Generates the list table rows.
*
* @since 3.1.0
*
* @global WP_Post $post Global post object.
* @global WP_Query $wp_query WordPress Query object.
*/

View File

@ -611,7 +611,9 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
}
/**
* @global string $mode List table view mode.
* Generates the list table rows.
*
* @since 3.1.0
*/
public function display_rows() {
foreach ( $this->items as $blog ) {

View File

@ -494,6 +494,9 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
}
/**
* Generates the list table rows.
*
* @since 3.1.0
*/
public function display_rows() {
foreach ( $this->items as $theme ) {

View File

@ -470,6 +470,11 @@ class WP_MS_Users_List_Table extends WP_List_Table {
echo apply_filters( 'manage_users_custom_column', '', $column_name, $user->ID );
}
/**
* Generates the list table rows.
*
* @since 3.1.0
*/
public function display_rows() {
foreach ( $this->items as $user ) {
$class = '';

View File

@ -464,6 +464,11 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
}
}
/**
* Generates the list table rows.
*
* @since 3.1.0
*/
public function display_rows() {
$plugins_allowedtags = array(
'a' => array(

View File

@ -694,6 +694,10 @@ class WP_Plugins_List_Table extends WP_List_Table {
}
/**
* Generates the list table rows.
*
* @since 3.1.0
*
* @global string $status
*/
public function display_rows() {

View File

@ -790,8 +790,13 @@ class WP_Posts_List_Table extends WP_List_Table {
}
/**
* Generates the list table rows.
*
* @since 3.1.0
*
* @global WP_Query $wp_query WordPress Query object.
* @global int $per_page
* @global int $per_page
*
* @param array $posts
* @param int $level
*/

View File

@ -230,6 +230,9 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
}
/**
* Generates the list table rows.
*
* @since 3.1.0
*/
public function display_rows() {
$themes = $this->items;

View File

@ -189,6 +189,9 @@ class WP_Themes_List_Table extends WP_List_Table {
}
/**
* Generates the list table rows.
*
* @since 3.1.0
*/
public function display_rows() {
$themes = $this->items;

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.7-alpha-58744';
$wp_version = '6.7-alpha-58745';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.