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. Built from https://develop.svn.wordpress.org/trunk@33668 git-svn-id: http://core.svn.wordpress.org/trunk@33635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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>' : '';
|
||||
|
||||
Reference in New Issue
Block a user