From 51d8a8ea62ee101aba51ead6be6b644c7f70fd04 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 17 Jul 2024 15:43:15 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-links-list-table.php | 5 +++++ wp-admin/includes/class-wp-list-table.php | 2 +- wp-admin/includes/class-wp-media-list-table.php | 4 ++++ wp-admin/includes/class-wp-ms-sites-list-table.php | 4 +++- wp-admin/includes/class-wp-ms-themes-list-table.php | 3 +++ wp-admin/includes/class-wp-ms-users-list-table.php | 5 +++++ wp-admin/includes/class-wp-plugin-install-list-table.php | 5 +++++ wp-admin/includes/class-wp-plugins-list-table.php | 4 ++++ wp-admin/includes/class-wp-posts-list-table.php | 7 ++++++- wp-admin/includes/class-wp-theme-install-list-table.php | 3 +++ wp-admin/includes/class-wp-themes-list-table.php | 3 +++ wp-includes/version.php | 2 +- 12 files changed, 43 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/class-wp-links-list-table.php b/wp-admin/includes/class-wp-links-list-table.php index 66c4990d0f..b038f79a76 100644 --- a/wp-admin/includes/class-wp-links-list-table.php +++ b/wp-admin/includes/class-wp-links-list-table.php @@ -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 ); diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index 2879a0a356..253bcca800 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -1718,7 +1718,7 @@ class WP_List_Table { } /** - * Generates the table rows. + * Generates the list table rows. * * @since 3.1.0 */ diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index 02362e3a89..fb0d67d705 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -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. */ diff --git a/wp-admin/includes/class-wp-ms-sites-list-table.php b/wp-admin/includes/class-wp-ms-sites-list-table.php index c28a454840..19fb0e009b 100644 --- a/wp-admin/includes/class-wp-ms-sites-list-table.php +++ b/wp-admin/includes/class-wp-ms-sites-list-table.php @@ -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 ) { diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php index 96a1d99576..372e499209 100644 --- a/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -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 ) { diff --git a/wp-admin/includes/class-wp-ms-users-list-table.php b/wp-admin/includes/class-wp-ms-users-list-table.php index d02d380536..58d31f67f8 100644 --- a/wp-admin/includes/class-wp-ms-users-list-table.php +++ b/wp-admin/includes/class-wp-ms-users-list-table.php @@ -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 = ''; diff --git a/wp-admin/includes/class-wp-plugin-install-list-table.php b/wp-admin/includes/class-wp-plugin-install-list-table.php index 1a318d374b..f39ec60a24 100644 --- a/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -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( diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index b9cc969f1c..77ae9b57d0 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -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() { diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index 826be9b67d..1c6ae83119 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -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 */ diff --git a/wp-admin/includes/class-wp-theme-install-list-table.php b/wp-admin/includes/class-wp-theme-install-list-table.php index e273d4bc81..ca179b6c2d 100644 --- a/wp-admin/includes/class-wp-theme-install-list-table.php +++ b/wp-admin/includes/class-wp-theme-install-list-table.php @@ -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; diff --git a/wp-admin/includes/class-wp-themes-list-table.php b/wp-admin/includes/class-wp-themes-list-table.php index fce362011d..53b34e93f9 100644 --- a/wp-admin/includes/class-wp-themes-list-table.php +++ b/wp-admin/includes/class-wp-themes-list-table.php @@ -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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 84bb7bbbee..5bebd9a73d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.