Make WordPress Core

Changeset 32805


Ignore:
Timestamp:
06/16/2015 09:32:53 PM (9 years ago)
Author:
helen
Message:

Media list table: Avoid PHP notices by using the proper variables.

Also visually tightens up the row actions.

props tyxla.
fixes #32657. see #29881.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/list-tables.css

    r32782 r32805  
    316316table.media .column-title .row-actions {
    317317    margin-left: 70px; /* 60px image + margin */
     318}
     319
     320table.media .column-title .media-info p {
     321    margin-bottom: 0.2em;
    318322}
    319323
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r32800 r32805  
    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.
    634      */
    635     protected function handle_row_actions( $link, $column_name, $primary ) {
     633     * @return string Row actions output for media attachments.
     634     */
     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        }
Note: See TracChangeset for help on using the changeset viewer.