WordPress.org

Make WordPress Core

Ticket #32657: 32657.2.patch

File 32657.2.patch, 1.4 KB (added by tyxla, 4 years ago)

Updating @helen's version to fix a couple of minor issues and update the CSS.

  • src/wp-admin/css/list-tables.css

     
    317317        margin-left: 70px; /* 60px image + margin */
    318318}
    319319
     320table.media .column-title .media-info p {
     321        margin-bottom: 0.2em;
     322}
     323
    320324/* @todo: pick a consistent list table selector */
    321325.wp-list-table a {
    322326        -webkit-transition: none;
  • src/wp-admin/includes/class-wp-media-list-table.php

     
    627627         * @since 4.3.0
    628628         * @access protected
    629629         *
    630          * @param object $link        Link being acted upon.
     630         * @param object $post        Attachment being acted upon.
    631631         * @param string $column_name Current column name.
    632632         * @param string $primary     Primary column name.
    633          * @return string Row action output for links.
     633         * @return string Row actions output for media attachments.
    634634         */
    635         protected function handle_row_actions( $link, $column_name, $primary ) {
     635        protected function handle_row_actions( $post, $column_name, $primary ) {
    636636                if ( $primary === $column_name ) {
     637                        $att_title = _draft_or_post_title();
    637638                        return $this->row_actions( $this->_get_row_actions( $post, $att_title ) );
    638639                }
    639640        }