Plugin Directory

Changeset 3231414


Ignore:
Timestamp:
01/29/2025 04:08:56 PM (14 months ago)
Author:
sonaar
Message:

Version 5.9.4

Location:
mp3-music-player-by-sonaar
Files:
735 added
3 edited

Legend:

Unmodified
Added
Removed
  • mp3-music-player-by-sonaar/trunk/README.txt

    r3208780 r3231414  
    66Tested up to: 6.7
    77Requires PHP: 5.6
    8 Stable tag: 5.9.3
     8Stable tag: 5.9.4
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    343343
    344344== Changelog ==
     345= 5.9.4 =
     346- Fix: Caroussel Slider with Favorites
     347- Fix: PHP warning in the classic Widget interface in some case
     348- Fix: Special characters issue with post title when using ACF as source
     349- Fix: Sticky player float layout progress bar visibility
     350- Fix: Three dots clicking issue on the CTAs
     351- Fix: Resolved a security vulnerability
     352
    345353= 5.9.3 =
    346354- Fix: Compatiblity issue with Elementor 3.26. Elementor new update caused the plugin not loading/crash on Elementor pages. https://github.com/elementor/elementor/issues/29425
  • mp3-music-player-by-sonaar/trunk/includes/class-sonaar-music-widget.php

    r3208780 r3231414  
    15091509
    15101510            $index = 0;
     1511            $trackIndexRelatedToItsPost = 0; //variable required to set the data-store-id. Data-store-id is used to popup the right content.
     1512            $currentTrackId = ''; //Used to set the $trackIndexRelatedToItsPost
     1513
    15111514            foreach ( $slideList as $trackIndex => $slide ) {
    15121515                if( $sliderSource == 'track' ){
     
    15381541                    $widgetPart_slider_content .= $widgetPart_slider_album_title . $widgetPart_slider_track_title;
    15391542                }
    1540                 $song_store_list_ar = $this->fetch_song_store_list_html($playlist['tracks'][$trackIndex], $trackIndex,  $show_track_market, $trackIndex);
     1543
     1544                if($currentTrackId != $slidePostId){ //Reset $trackIndexRelatedToItsPost counting. It is incremented at the end of the foreach.
     1545                    $currentTrackId = $slidePostId;
     1546                    $trackIndexRelatedToItsPost = 0;
     1547                }
     1548
     1549
     1550                if(
     1551                    ( get_post_meta( $currentTrackId, 'reverse_post_tracklist', true) || $this->getOptionValue('reverse_tracklist') ) &&  // If Reverse tracklist is set through the shortcode or throught the post settings, reverse the popup CTA odrer
     1552                    !(get_post_meta( $currentTrackId, 'reverse_post_tracklist', true) && $this->getOptionValue('reverse_tracklist') )  //But if Reverse tracklist is set twice, dont reverse the popup CTA odrer
     1553                ){
     1554                    $countTrackFromSamePlaylist = array_count_values( array_column($playlist['tracks'], 'sourcePostID') )[$currentTrackId];
     1555                    $trackIndex =  $countTrackFromSamePlaylist - 1 - $trackIndexRelatedToItsPost;
     1556                }else{
     1557                    $trackIndex =  $trackIndexRelatedToItsPost;
     1558                }
     1559
     1560                $song_store_list_ar = $this->fetch_song_store_list_html($playlist['tracks'][$index], $trackIndex,  $show_track_market, $index);
    15411561                $song_store_list = $song_store_list_ar['store_list'];
    15421562                $playlist_has_ctas = (isset($playlist_has_ctas) && $playlist_has_ctas == true ) ? $playlist_has_ctas : $song_store_list_ar['playlist_has_ctas'];
     
    15481568                }
    15491569               
    1550 
    15511570                $widgetPart_slider .= '</div>';
    15521571                if( isset($this->shortcodeParams['slider_move_content_below_image']) && $this->shortcodeParams['slider_move_content_below_image'] == 'true' ){
     
    15551574                $widgetPart_slider .= '</div>';
    15561575                $index++;
     1576                $trackIndexRelatedToItsPost++;//$trackIndexRelatedToItsPost is required to set the data-store-id. Data-store-id is used to popup the right content.
    15571577            }
    15581578            $widgetPart_slider .= '</div>';
     
    28072827            $title = esc_attr( $shortcodeParams['title'] );
    28082828            $albums = $shortcodeParams['albums'];
    2809             $show_playlist = (bool)$shortcodeParams['show_playlist'];
    2810             $sticky_player = (bool)$shortcodeParamss['sticky_player'];
     2829            $show_playlist = ( isset($shortcodeParams['show_playlist']) )? (bool)$shortcodeParams['show_playlist']: false;
     2830            $sticky_player = (bool)$shortcodeParams['sticky_player'];
    28112831            $hide_artwork = (bool)$shortcodeParams['hide_artwork'];
    28122832            $show_album_market = (bool)$shortcodeParams['show_album_market'];
     
    41394159
    41404160                                    $track_artist = ( isset( $mp3_metadata['artist'] ) && $mp3_metadata['artist'] !== '' )? $mp3_metadata['artist'] : false;
    4141                                     $album_title = ( isset( $mp3_metadata['album'] ) && $mp3_metadata['album'] !== '' )? $mp3_metadata['album'] : get_the_title($a->ID);
     4161                                    $album_title = ( isset( $mp3_metadata['album'] ) && $mp3_metadata['album'] !== '' )? $mp3_metadata['album'] : html_entity_decode(get_the_title($a->ID), ENT_QUOTES, 'UTF-8');
    41424162                                    $track_length = ( isset( $mp3_metadata['length_formatted'] ) && $mp3_metadata['length_formatted'] !== '' )? $mp3_metadata['length_formatted'] : false;
    41434163                                    $showLoading = true;
     
    47754795                return;
    47764796            }
    4777             $playlist_name = (string) $feed->channel->title;
    4778             $playlist_image = isset($feed->channel->image) ? (string) $feed->channel->image->url : '';
     4797            $playlist_name = isset($feed->channel->title) ? sanitize_text_field((string) $feed->channel->title) : '';
     4798            $playlist_image = isset($feed->channel->image) ? esc_url_raw((string) $feed->channel->image->url) : '';
    47794799
    47804800            $playlist = [
     
    48194839                }
    48204840
    4821                 $audioSrc = isset($item->enclosure) ? (string) $item->enclosure['url'] : '';
    4822 
     4841                $audioSrc = isset($item->enclosure) ? esc_url((string) $item->enclosure['url']) : '';
     4842
     4843                $track_title = isset($item->title) ? sanitize_text_field((string) $item->title) : '';
    48234844                $track = [
    48244845                    'id' => '',
    48254846                    'mp3' =>  $audioSrc,
    48264847                    'loading' => true,
    4827                     'track_title' => isset($item->title) ? (string) $item->title : '',
    4828                     'track_artist' => isset($item->itunes_author) ? (string) $item->itunes_author : '',
     4848                    'track_title' => esc_html($track_title),
     4849                    'track_artist' => isset($item->itunes_author) ? sanitize_text_field((string) $item->itunes_author) : '',
    48294850                    'length' => isset($episode_audio_file_duration) ? $episode_audio_file_duration : '',
    48304851                    'album_title' =>  $playlist_name,
    4831                     'poster' => isset($itunes_image['href']) ? (string) $itunes_image['href'] : $playlist_image,
    4832                     'published_date' => isset($item->pubDate) ? (string) $item->pubDate : '',
     4852                    'poster' => isset($itunes_image['href']) ? esc_url((string) $itunes_image['href']) : $playlist_image,
     4853                    'published_date' => isset($item->pubDate) ? esc_html((string) $item->pubDate) : '',
    48334854                    'track_pos' => $track_pos,
    48344855                    'release_date' => '',
  • mp3-music-player-by-sonaar/trunk/sonaar-music.php

    r3208780 r3231414  
    1717 * Plugin URI:        https://sonaar.io/mp3-audio-player-pro/?utm_source=Sonaar+Music+Free+Plugin&utm_medium=plugin
    1818 * Description:       The most popular and complete Music & Podcast Player for WordPress.
    19  * Version:           5.9.3
     19 * Version:           5.9.4
    2020 * Author:            Sonaar Music
    2121 * Author URI:        https://sonaar.io/?utm_source=Sonaar%20Music%20Free%20Plugin&utm_medium=plugin
     
    3131}
    3232
    33 define('SRMP3_VERSION', '5.9.3'); // important to avoid cache issues on update
    34 define('SRMP3_PRO_MIN_VERSION', '5.9.3'); // Minimum pro version required
     33define('SRMP3_VERSION', '5.9.4'); // important to avoid cache issues on update
     34define('SRMP3_PRO_MIN_VERSION', '5.9.4'); // Minimum pro version required
    3535if ( !defined( 'SRMP3_DIR_PATH' ) ) {
    3636    define( 'SRMP3_DIR_PATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.