Changeset 958291
- Timestamp:
- 07/31/2014 08:17:07 PM (12 years ago)
- Location:
- zbplayer/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
zbPlayer.admin.php (modified) (1 diff)
-
zbPlayer.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zbplayer/trunk/readme.txt
r941446 r958291 5 5 Requires at least: 3.5 6 6 Tested up to: 3.9.1 7 Stable tag: 2.1. 67 Stable tag: 2.1.7 8 8 License: Dual Licensed under the MIT and GPLv2 or later 9 9 … … 51 51 52 52 == Changelog == 53 54 = 2.1.7 = 55 * Get rid limit of preg_replace() problems by exact number of expected replaces 53 56 54 57 = 2.1.6 = -
zbplayer/trunk/zbPlayer.admin.php
r941446 r958291 7 7 * 8 8 * zbPlayer.admin.php 9 * Release 2.1. 6July 20149 * Release 2.1.7 July 2014 10 10 */ 11 11 // connect wordpress color picker -
zbplayer/trunk/zbPlayer.php
r941446 r958291 4 4 Plugin URI: http://gilevich.com/portfolio/zbplayer 5 5 Description: Converts mp3 files links to a small flash player and a link to download file mp3 file. Also you can share your mp3 files with that plugin. 6 Version: 2.1. 66 Version: 2.1.7 7 7 Author: Vladimir Gilevich 8 8 Author URI: http://gilevich.com/ … … 10 10 */ 11 11 12 define('ZBPLAYER_VERSION', "2.1. 6");12 define('ZBPLAYER_VERSION', "2.1.7"); 13 13 define('ZBPLAYER_DEFAULT_WIDTH', "500"); 14 14 define('ZBPLAYER_DEFAULT_INITIALVOLUME', "60"); … … 120 120 } 121 121 } else { 122 $result = preg_replace_callback( $pattern, "zbp_insert_player", $content ); 122 // let's try find exact value or expected replaces to do not have limit problems with preg_replace() 123 preg_match_all( $pattern, $content, $matches ); 124 $expectedReplaces = (is_array($matches) && count($matches)) ? count($matches[0]) : -1; 125 $result = preg_replace_callback( $pattern, "zbp_insert_player", $content, $expectedReplaces ); 123 126 // fix if error occured for preg_replace_callback() 124 127 $content = empty($result) ? $content : $result;
Note: See TracChangeset
for help on using the changeset viewer.