Docs: Clarify the different return conditions in the DocBlock for WP_List_Table->handle_row_actions()
.
This clarification follows the introduction of primary columns in 4.3. See #33313. Props morganestes. Fixes #33436. git-svn-id: https://develop.svn.wordpress.org/trunk@33668 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
695560bf58
commit
0af6d275b0
@ -1260,7 +1260,7 @@ class WP_List_Table {
|
||||
* @param object $item The item being acted upon.
|
||||
* @param string $column_name Current column name.
|
||||
* @param string $primary Primary column name.
|
||||
* @return string The row actions output. In this case, an empty string.
|
||||
* @return string The row actions HTML, or an empty string if the current column is the primary column.
|
||||
*/
|
||||
protected function handle_row_actions( $item, $column_name, $primary ) {
|
||||
return $column_name == $primary ? '<button type="button" class="toggle-row"><span class="screen-reader-text">' . __( 'Show more details' ) . '</span></button>' : '';
|
||||
|
Loading…
Reference in New Issue
Block a user