Make WordPress Core

Changeset 37789

Timestamp:
06/21/2016 02:24:16 PM (8 years ago)
Author:
nbachiyski
Message:

Admin: Escape attachment name in case it contains special characters

Merge of [37774] to the 4.2 branch.

Location:
branches/4.2/src
Files:
2 edited

Legend:

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

    r31942 r37789  
    342342            <?php };
    343343            _media_states( $post ); ?></strong>
    344             <p class="filename"><?php echo wp_basename( $post->guid ); ?></p>
     344            <p class="filename"><?php echo ); ?></p>
    345345<?php
    346346        echo $this->row_actions( $this->_get_row_actions( $post, $att_title ) );
  • branches/4.2/src/wp-includes/post-template.php

    r32081 r37789  
    15631563     * @param string|bool $text      If string, will be link text. Default false.
    15641564     */
    1565     return apply_filters( 'wp_get_attachment_link', "<a href='$url'>$link_text</a>", $id, $size, $permalink, $icon, $text );
     1565    return apply_filters( 'wp_get_attachment_link', "<a href=''>$link_text</a>", $id, $size, $permalink, $icon, $text );
    15661566}
    15671567
Note: See TracChangeset for help on using the changeset viewer.