Make WordPress Core

Changeset 32798


Ignore:
Timestamp:
06/16/2015 07:46:27 PM (9 years ago)
Author:
helen
Message:

Media list table: Restore row actions.

see #29881, #32657.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r32754 r32798  
    621621        return apply_filters( 'media_row_actions', $actions, $post, $this->detached );
    622622    }
     623
     624    /**
     625     * Generate and display row actions links.
     626     *
     627     * @since 4.3.0
     628     * @access protected
     629     *
     630     * @param object $link        Link being acted upon.
     631     * @param string $column_name Current column name.
     632     * @param string $primary     Primary column name.
     633     * @return string Row action output for links.
     634     */
     635    protected function handle_row_actions( $link, $column_name, $primary ) {
     636        if( $primary === $column_name ) {
     637            return $this->row_actions( $this->_get_row_actions( $post, $att_title ) );
     638        }
     639    }
    623640}
Note: See TracChangeset for help on using the changeset viewer.