Media list table: Avoid PHP notices by using the proper variables.
Also visually tightens up the row actions. props tyxla. fixes #32657. see #29881. Built from https://develop.svn.wordpress.org/trunk@32805 git-svn-id: http://core.svn.wordpress.org/trunk@32776 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a1bd091d65
commit
d159cc2272
|
@ -317,6 +317,10 @@ table.media .column-title .row-actions {
|
|||
margin-right: 70px; /* 60px image + margin */
|
||||
}
|
||||
|
||||
table.media .column-title .media-info p {
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
/* @todo: pick a consistent list table selector */
|
||||
.wp-list-table a {
|
||||
-webkit-transition: none;
|
||||
|
|
|
@ -317,6 +317,10 @@ table.media .column-title .row-actions {
|
|||
margin-left: 70px; /* 60px image + margin */
|
||||
}
|
||||
|
||||
table.media .column-title .media-info p {
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
/* @todo: pick a consistent list table selector */
|
||||
.wp-list-table a {
|
||||
-webkit-transition: none;
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -627,13 +627,14 @@ class WP_Media_List_Table extends WP_List_Table {
|
|||
* @since 4.3.0
|
||||
* @access protected
|
||||
*
|
||||
* @param object $link Link being acted upon.
|
||||
* @param object $post Attachment being acted upon.
|
||||
* @param string $column_name Current column name.
|
||||
* @param string $primary Primary column name.
|
||||
* @return string Row action output for links.
|
||||
* @return string Row actions output for media attachments.
|
||||
*/
|
||||
protected function handle_row_actions( $link, $column_name, $primary ) {
|
||||
protected function handle_row_actions( $post, $column_name, $primary ) {
|
||||
if ( $primary === $column_name ) {
|
||||
$att_title = _draft_or_post_title();
|
||||
return $this->row_actions( $this->_get_row_actions( $post, $att_title ) );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-alpha-32804';
|
||||
$wp_version = '4.3-alpha-32805';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue