Plugin Directory

Changeset 2141308


Ignore:
Timestamp:
08/18/2019 06:41:32 AM (7 years ago)
Author:
ndhaddon
Message:

MP3 download fix and basic security fixes

Location:
better-file-download/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • better-file-download/trunk/README.txt

    r2038018 r2141308  
    44Tags: better file download, file download, downloads, download manager, file upload, file types, file management, publications, albums
    55Requires at least: 4.7
    6 Tested up to: 5.1
     6Tested up to: 5.2
    77Requires PHP: 5.3
    8 Stable tag: 1.0.8
     8Stable tag: 1.0.10
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    134134* Added default ordering to category downloads and fixed an issue with forcing the download to open in a new tab.
    135135
     136= 1.0.10 =
     137* Fixed an issue with MP3 files not downloading. Basic security updates.
     138
    136139
    137140 == Upgrade Notice ==
     
    166169= 1.0.9 =
    167170* Added default ordering to category downloads and fixed an issue with forcing the download to open in a new tab.
     171
     172= 1.0.10 =
     173* Fixed an issue with MP3 files not downloading. Basic security updates.
  • better-file-download/trunk/better-file-download.php

    r2027932 r2141308  
    1818 * Description:        Better File Download allows you to offer various file types for your users to download, track the popularity of your files and present them in a highly configurable way. For detailed instructions and configuration options, please visit the settings link or the Download Settings link in the side bar.
    1919 *
    20  * Version:           1.0.9
     20 * Version:           1.0.10
    2121 * Author:            Nik Haddon
    2222 * Author URI:        https://nikhaddon.com
  • better-file-download/trunk/public/partials/better-file-download-public-box-display.php

    r2027932 r2141308  
    3535            {
    3636                ?>
    37                 <a href="<?php echo get_permalink( $bfd_args['id'] ); ?>" title="<?php echo esc_attr( $bfd_title ); ?>" class="bfd-svg-container bfd-single-download-btn" target="_blank" >
     37                <a download href="<?php echo get_permalink( $bfd_args['id'] ); ?>" title="<?php echo esc_attr( $bfd_title ); ?>" class="bfd-svg-container bfd-single-download-btn" target="_blank" >
    3838                    <svg xmlns="http://www.w3.org/2000/svg" width="28" height="30" viewBox="0 0 28 30" version="1.1"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-6.000000, -5.000000)" fill="currentColor"><path d="M26.7 21.7L21.7 21.7 21.7 5 18.3 5 18.3 21.7 13.3 21.7 20 28.3 26.7 21.7 26.7 21.7ZM6.7 31.7L6.7 35 33.3 35 33.3 31.7 6.7 31.7 6.7 31.7Z"/></g></g></svg>
    3939                </a>
     
    4343            {
    4444                ?>
    45                 <a href="<?php echo get_permalink( $bfd_args['id'] ); ?>" title="<?php echo esc_attr( $bfd_title ); ?>" class="bfd-svg-container bfd-single-download-btn" download>
     45                <a download href="<?php echo get_permalink( $bfd_args['id'] ); ?>" title="<?php echo esc_attr( $bfd_title ); ?>" class="bfd-svg-container bfd-single-download-btn" download>
    4646                    <svg xmlns="http://www.w3.org/2000/svg" width="28" height="30" viewBox="0 0 28 30" version="1.1"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-6.000000, -5.000000)" fill="currentColor"><path d="M26.7 21.7L21.7 21.7 21.7 5 18.3 5 18.3 21.7 13.3 21.7 20 28.3 26.7 21.7 26.7 21.7ZM6.7 31.7L6.7 35 33.3 35 33.3 31.7 6.7 31.7 6.7 31.7Z"/></g></g></svg>
    4747                </a>
     
    5151         </div>
    5252         <div class="bfd-column">
    53             <a href="<?php echo get_permalink( $bfd_args['id'] ); ?>" title="<?php echo esc_attr( $bfd_title ); ?>" class="bfd-download-meta" <?php echo (! empty( $bfd_options['bfd-force-new-tab'] ) ? 'target="_blank"' : 'download' )  ?> >
     53            <a download href="<?php echo get_permalink( $bfd_args['id'] ); ?>" title="<?php echo esc_attr( $bfd_title ); ?>" class="bfd-download-meta" <?php echo (! empty( $bfd_options['bfd-force-new-tab'] ) ? 'target="_blank"' : 'download' )  ?> >
    5454                <p class="bfd-download-title"><strong><?php _e( $bfd_download->post_title); ?></strong></p>
    5555                <?php
  • better-file-download/trunk/public/partials/better-file-download-public-taxonomy-box-display.php

    r2027932 r2141308  
    7979                $bfd_format .= '<div class="bfd-column">';
    8080                if ( ! empty( $bfd_options['bfd-force-new-tab'] )) {
    81                     $bfd_format .= '<a href="%1$s" title="%2$s" class="post-%3$s bfd-download-meta" target="_blank">';
     81                    $bfd_format .= '<a download href="%1$s" title="%2$s" class="post-%3$s bfd-download-meta" target="_blank">';
    8282                }
    8383                else
    8484                {
    85                     $bfd_format .= '<a href="%1$s" title="%2$s" class="post-%3$s bfd-download-meta" download>';
     85                    $bfd_format .= '<a download href="%1$s" title="%2$s" class="post-%3$s bfd-download-meta" download>';
    8686                }
    8787                // $bfd_format .= '<a href="%1$s" title="%2$s" class="post-%3$s bfd-download-meta">';
Note: See TracChangeset for help on using the changeset viewer.