Skip to content

Commit

Permalink
Docs: Add missing description for the display_rows() method in list…
Browse files Browse the repository at this point in the history
… table classes.

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

Props nikitasolanki1812, narenin, mukesh27, dd32, SergeyBiryukov.
Fixes #61670.

git-svn-id: https://develop.svn.wordpress.org/trunk@58745 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Jul 17, 2024
1 parent 3296c6b commit b97bc04
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/wp-admin/includes/class-wp-links-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,11 @@ public function column_default( $item, $column_name ) {
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 );
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/includes/class-wp-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,7 @@ public function display_rows_or_placeholder() {
}

/**
* Generates the table rows.
* Generates the list table rows.
*
* @since 3.1.0
*/
Expand Down
4 changes: 4 additions & 0 deletions src/wp-admin/includes/class-wp-media-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,10 @@ public function column_default( $item, $column_name ) {
}

/**
* Generates the list table rows.
*
* @since 3.1.0
*
* @global WP_Post $post Global post object.
* @global WP_Query $wp_query WordPress Query object.
*/
Expand Down
4 changes: 3 additions & 1 deletion src/wp-admin/includes/class-wp-ms-sites-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,9 @@ public function column_default( $item, $column_name ) {
}

/**
* @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 ) {
Expand Down
3 changes: 3 additions & 0 deletions src/wp-admin/includes/class-wp-ms-themes-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@ protected function get_bulk_actions() {
}

/**
* Generates the list table rows.
*
* @since 3.1.0
*/
public function display_rows() {
foreach ( $this->items as $theme ) {
Expand Down
5 changes: 5 additions & 0 deletions src/wp-admin/includes/class-wp-ms-users-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,11 @@ public function column_default( $item, $column_name ) {
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 = '';
Expand Down
5 changes: 5 additions & 0 deletions src/wp-admin/includes/class-wp-plugin-install-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,11 @@ private function order_callback( $plugin_a, $plugin_b ) {
}
}

/**
* Generates the list table rows.
*
* @since 3.1.0
*/
public function display_rows() {
$plugins_allowedtags = array(
'a' => array(
Expand Down
4 changes: 4 additions & 0 deletions src/wp-admin/includes/class-wp-plugins-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,10 @@ public function current_action() {
}

/**
* Generates the list table rows.
*
* @since 3.1.0
*
* @global string $status
*/
public function display_rows() {
Expand Down
7 changes: 6 additions & 1 deletion src/wp-admin/includes/class-wp-posts-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -790,8 +790,13 @@ protected function get_sortable_columns() {
}

/**
* 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
*/
Expand Down
3 changes: 3 additions & 0 deletions src/wp-admin/includes/class-wp-theme-install-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ public function display() {
}

/**
* Generates the list table rows.
*
* @since 3.1.0
*/
public function display_rows() {
$themes = $this->items;
Expand Down
3 changes: 3 additions & 0 deletions src/wp-admin/includes/class-wp-themes-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ public function display_rows_or_placeholder() {
}

/**
* Generates the list table rows.
*
* @since 3.1.0
*/
public function display_rows() {
$themes = $this->items;
Expand Down

0 comments on commit b97bc04

Please sign in to comment.