Media list table: Restore row actions.

see #29881, #32657.

Built from https://develop.svn.wordpress.org/trunk@32798


git-svn-id: http://core.svn.wordpress.org/trunk@32769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2015-06-16 19:47:24 +00:00
parent efbb8fa4e5
commit a49c192f37
2 changed files with 18 additions and 1 deletions

View File

@ -620,4 +620,21 @@ class WP_Media_List_Table extends WP_List_Table {
*/
return apply_filters( 'media_row_actions', $actions, $post, $this->detached );
}
/**
* Generate and display row actions links.
*
* @since 4.3.0
* @access protected
*
* @param object $link Link being acted upon.
* @param string $column_name Current column name.
* @param string $primary Primary column name.
* @return string Row action output for links.
*/
protected function handle_row_actions( $link, $column_name, $primary ) {
if( $primary === $column_name ) {
return $this->row_actions( $this->_get_row_actions( $post, $att_title ) );
}
}
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32797';
$wp_version = '4.3-alpha-32798';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.