mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-08 16:41:44 +01:00
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:
parent
4254f22c2d
commit
89c39e7eab
@ -1260,7 +1260,7 @@ class WP_List_Table {
|
|||||||
* @param object $item The item being acted upon.
|
* @param object $item The item being acted upon.
|
||||||
* @param string $column_name Current column name.
|
* @param string $column_name Current column name.
|
||||||
* @param string $primary Primary 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 ) {
|
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>' : '';
|
return $column_name == $primary ? '<button type="button" class="toggle-row"><span class="screen-reader-text">' . __( 'Show more details' ) . '</span></button>' : '';
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-33667';
|
$wp_version = '4.4-alpha-33668';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user