Making WordPress.org


Ignore:
Timestamp:
03/28/2017 01:13:16 AM (10 years ago)
Author:
dd32
Message:

Plugin Directory: Don't overescape the asset URLs, in some places the asset URL was being used where it should not have output-escaping aplied to it which caused extra query args to be discarded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-screenshots.php

    r4765 r5176  
    3232                foreach ( $screen_shots as $image ) {
    3333                        $screen_shot = sprintf( '<a href="%1$s" rel="nofollow"><img class="screenshot" src="%1$s" alt="" /></a>',
    34                                 Template::get_asset_url( $plugin, $image )
     34                                esc_url( Template::get_asset_url( $plugin, $image ) )
    3535                        );
    3636
Note: See TracChangeset for help on using the changeset viewer.