Plugin Directory

Changeset 2391211


Ignore:
Timestamp:
09/30/2020 08:37:14 PM (5 years ago)
Author:
zubaka
Message:

2.4.2 Preload files metadata to fix Download problem for links with special characters

Location:
zbplayer
Files:
28 added
3 edited

Legend:

Unmodified
Added
Removed
  • zbplayer/trunk/readme.txt

    r2390562 r2391211  
    55Requires at least: 3.5
    66Tested up to: 5.5
    7 Stable tag: 2.4.1
     7Stable tag: 2.4.2
    88License: Dual Licensed under the MIT and GPLv2 or later
    99
     
    4747
    4848== Changelog ==
     49
     50= 2.4.2 =
     51*    Preload files metadata to fix Download problem for links with special characters
    4952
    5053= 2.4.1 =
  • zbplayer/trunk/zbPlayer.admin.php

    r2390561 r2391211  
    77 *
    88 *  zbPlayer.admin.php
    9  *  Release 2.4.1 September 2020
     9 *  Release 2.4.2 September 2020
    1010 */
    1111
  • zbplayer/trunk/zbPlayer.php

    r2390561 r2391211  
    44Plugin URI: http://gilevich.com/portfolio/zbplayer
    55Description: Converts mp3 files links to a small flash player and a link to download file mp3 file.
    6 Version: 2.4.1
     6Version: 2.4.2
    77Author: Vladimir Gilevich
    88Author URI: http://gilevich.com/
     
    1212*/
    1313
    14 define('ZBPLAYER_VERSION', "2.4.0");
     14define('ZBPLAYER_VERSION', "2.4.2");
    1515define('ZBPLAYER_DEFAULT_WIDTH', "500");
    1616define('ZBPLAYER_DEFAULT_INITIALVOLUME', "60");
     
    152152            $expectedReplaces = (is_array($matches) && count($matches)) ? count($matches[0]) : -1;
    153153            $result = preg_replace_callback( $pattern, "zbp_insert_player", $content, $expectedReplaces );
    154             // fix if error occured for preg_replace_callback()
     154            // fix if error occurred for preg_replace_callback()
    155155            $content = empty($result) ? $content : $result;
    156156            // fix preg bug
     
    209209
    210210    if ((wp_is_mobile() && get_option('zbp_native_mobile') == 'true') || get_option('zbp_native_desktop') == 'true') {
    211         $ret .= '<audio class="zbPlayerNativeMobile" src="'.$link.'" controls preload="none"></audio>';
     211        $ret .= '<audio class="zbPlayerNativeMobile" src="'.$link.'" controls preload="metadata"></audio>';
    212212    } else {
    213213        // add flash player
     
    218218            . '&amp;autostart='.$autostart.'" type="application/x-shockwave-flash" class="zbPlayerFlash" src="'
    219219            . plugin_dir_url(__FILE__).'data/player.swf" id="zbPlayer"/>';
    220         $ret .= '<audio class="zbPlayerNative" src="'.$link.'" controls preload="none"></audio>';
     220        $ret .= '<audio class="zbPlayerNative" src="'.$link.'" controls preload="metadata"></audio>';
    221221    }
    222222    $ret .= '</div>';
Note: See TracChangeset for help on using the changeset viewer.