Changeset 2849128
- Timestamp:
- 01/16/2023 12:19:48 PM (3 years ago)
- Location:
- bg-playlist/trunk
- Files:
-
- 2 edited
-
bg_playlist.php (modified) (8 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bg-playlist/trunk/bg_playlist.php
r2128475 r2849128 3 3 Plugin Name: Bg Playlist 4 4 Description: The plugin creates the WP playlist using links to audio files in the posts. 5 Version: 1.5. 55 Version: 1.5.6 6 6 Author: VBog 7 7 Author URI: https://bogaiskov.ru … … 11 11 */ 12 12 13 /* Copyright 2018-20 19Vadim Bogaiskov (email: vadim.bogaiskov@gmail.com)13 /* Copyright 2018-2023 Vadim Bogaiskov (email: vadim.bogaiskov@gmail.com) 14 14 15 15 This program is free software; you can redistribute it and/or modify … … 38 38 } 39 39 40 define('BG_PLAYLIST_VERSION', '1.5. 5');40 define('BG_PLAYLIST_VERSION', '1.5.6'); 41 41 42 42 $upload_dir = wp_upload_dir(); … … 184 184 if ($src) { 185 185 if (!preg_match('#https?:\/\/#', $src)) { // Относительный путь 186 if ($src {0}!= '/') $src = '/'.$src;186 if ($src[0] != '/') $src = '/'.$src; 187 187 $src = site_url($src); 188 188 } … … 238 238 $item = trim($match['url'][$i]); 239 239 if (!preg_match('#https?:\/\/#', $item)) { // Относительный путь 240 if ($item {0}!= '/') { // относительно плейлиста240 if ($item[0] != '/') { // относительно плейлиста 241 241 $path = str_replace(basename($src), "", $src); 242 242 $item = $path.$item; … … 290 290 291 291 if (!preg_match('#https?:\/\/#', $item)) { // Относительный путь 292 if ($item {0}!= '/') { // относительно плейлиста292 if ($item[0] != '/') { // относительно плейлиста 293 293 $path = str_replace(basename($src), "", $src); 294 294 $item = $path.$item; … … 371 371 } 372 372 } 373 if ($text {0}!= '#') $song['caption'] = bg_wp_kses($text);373 if ($text[0] != '#') $song['caption'] = bg_wp_kses($text); 374 374 } 375 375 preg_match( '#data\-length\s*=\s*([\'\"])([^\'\"]*)(\1)#ui', $match[0], $mt ); … … 680 680 $url = trim($mt[2]); 681 681 if (!empty ($url)) { 682 if ($url {0}== '/') $url = BG_HTTP_HOST.$url; // преобразуем относительный путь к абсолютному682 if ($url[0] == '/') $url = BG_HTTP_HOST.$url; // преобразуем относительный путь к абсолютному 683 683 // Проверяем с этого ли сайта файл 684 684 if (!strncasecmp ( $url , $site_url , strlen($site_url) )) { -
bg-playlist/trunk/readme.txt
r2128475 r2849128 4 4 Tags: playlist, player, track, music, auduio, disk 5 5 Requires at least: 3.0.1 6 Tested up to: 5.2.27 Requires PHP: 5.36 Tested up to: 6.1.1 7 Requires PHP: 7.4 8 8 Stable tag: trunk 9 9 License: GPLv2 … … 79 79 == Changelog == 80 80 81 = 1.5.6 = 82 83 * Support PHP 8.0 84 81 85 = 1.5.5 = 82 86
Note: See TracChangeset
for help on using the changeset viewer.