From a49c192f3701540f28bc5f13c593453e2c7ca81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Tue, 16 Jun 2015 19:47:24 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-media-list-table.php | 17 +++++++++++++++++ wp-includes/version.php | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index ba40437517..327c6c89e4 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -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 ) ); + } + } } diff --git a/wp-includes/version.php b/wp-includes/version.php index d073bee497..a274529d04 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.