Changeset 3255595
- Timestamp:
- 03/13/2025 08:04:45 PM (9 months ago)
- Location:
- audio-album
- Files:
-
- 24 added
- 3 edited
-
tags/1.5.1 (added)
-
tags/1.5.1/audio-album.php (added)
-
tags/1.5.1/css (added)
-
tags/1.5.1/css/audioalbum-popup.css (added)
-
tags/1.5.1/css/audioalbum.css (added)
-
tags/1.5.1/includes (added)
-
tags/1.5.1/includes/customizer.php (added)
-
tags/1.5.1/includes/sanitize.php (added)
-
tags/1.5.1/js (added)
-
tags/1.5.1/js/audiotrackpopup.js (added)
-
tags/1.5.1/js/customizer-preview.js (added)
-
tags/1.5.1/js/customizer-showhide.js (added)
-
tags/1.5.1/languages (added)
-
tags/1.5.1/languages/audio-album-de_DE.mo (added)
-
tags/1.5.1/languages/audio-album-de_DE.po (added)
-
tags/1.5.1/languages/audio-album-en_GB.mo (added)
-
tags/1.5.1/languages/audio-album-en_GB.po (added)
-
tags/1.5.1/languages/audio-album-fr_FR.mo (added)
-
tags/1.5.1/languages/audio-album-fr_FR.po (added)
-
tags/1.5.1/languages/audio-album.pot (added)
-
tags/1.5.1/readme.txt (added)
-
tags/1.5.1/templates (added)
-
tags/1.5.1/templates/genesis-audioalbum-popup.php (added)
-
tags/1.5.1/uninstall.php (added)
-
trunk/audio-album.php (modified) (5 diffs)
-
trunk/includes/customizer.php (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
audio-album/trunk/audio-album.php
r2868730 r3255595 5 5 Description: Provides shortcodes to format native WordPress audio players as an album of tracks with additional info 6 6 Author: cubecolour 7 Version: 1.5. 07 Version: 1.5.1 8 8 Text Domain: audio-album 9 9 Domain Path: /languages/ … … 11 11 License: GPLv2 12 12 13 Copyright 2013-202 3Michael Atkins13 Copyright 2013-2025 Michael Atkins 14 14 15 15 [email protected] … … 356 356 357 357 if ( $args['songwriter'] !== '') { 358 $args['songwriter'] = '<span class="songwriter">(' . $args['songwriter']. ')</span>';358 $args['songwriter'] = '<span class="songwriter">(' . sanitize_text_field( $args['songwriter'] ) . ')</span>'; 359 359 } 360 360 … … 396 396 397 397 if ( $args['buttonlink'] !== '#') { 398 $popupbutton = '<a href="'. $cc_siteurl .'/?p=' . esc_attr( $args['buttonlink'] ) . '&pop=yes" class="info-popup" data-width="' . esc_attr( $args['width'] ) . '" data-height="' . esc_attr( $args['height']) . '">' . esc_attr( $args['buttontext']) . '</a>'; 398 $nonce = wp_create_nonce( 'cc_audioalbum_popup' ); // Generate a nonce 399 $popupbutton = '<a href="'. $cc_siteurl .'/?p=' . esc_attr( $args['buttonlink'] ) . '&pop=yes&_wpnonce=' . $nonce . '" class="info-popup" data-width="' . esc_attr( $args['width'] ) . '" data-height="' . esc_attr( $args['height']) . '">' . esc_attr( $args['buttontext']) . '</a>'; 400 399 401 } 400 402 … … 420 422 421 423 function cc_popup_audioalbum_template( $template ) { 422 if( isset( $_GET['pop']) && 'yes' == $_GET['pop'] ) 423 $template = plugin_dir_path( __FILE__ ) . 'templates/genesis-audioalbum-popup.php'; 424 if ( isset( $_GET['pop'] ) && 'yes' === $_GET['pop'] ) { 425 if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'cc_audioalbum_popup' ) ) { 426 $template = plugin_dir_path( __FILE__ ) . 'templates/genesis-audioalbum-popup.php'; 427 } else { 428 wp_die( esc_html__( 'Invalid request.', 'audio-album' ) ); // Prevent unauthorized access 429 } 430 } 424 431 425 432 return $template; -
audio-album/trunk/includes/customizer.php
r1419926 r3255595 24 24 'title' => __( 'Audio Album', 'audio-album' ), 25 25 'capability' => 'edit_theme_options', 26 'description' => __( '', 'audio-album' ),27 26 ) 28 27 ); -
audio-album/trunk/readme.txt
r3071795 r3255595 2 2 Contributors: numeeja 3 3 Donate link: https://cubecolour.co.uk/wp 4 Tags: audio, album, playlist, music, mp3 , ogg, m4a, wma, wav, media4 Tags: audio, album, playlist, music, mp3 5 5 Requires at least: 4.9 6 Tested up to: 6. 57 Stable tag: 1.5. 06 Tested up to: 6.7 7 Stable tag: 1.5.1 8 8 License: GPLv2 9 9 … … 170 170 171 171 == Changelog == 172 173 = 1.5.1 = 174 * Various bugfixes 172 175 173 176 = 1.5.0 = … … 244 247 == Upgrade Notice == 245 248 249 = 1.5.1 = 250 * Various bugfixes 251 246 252 = 1.5.0 = 247 253 * Removed jQuery as dependency on the front end (although mediaelement still requires jQuery) … … 270 276 = 1.2.0 = 271 277 272 * improve delimiting for comments 273 * add default value for preload shortcode param: metadata so total track time appears in player 274 * improved parameter value sanitization 275 * use array for shortcode parameters instead of extract 276 * use constant for plugin version 277 * use visibility instead of display for delaying appearance of tracks 278 * various fixes, see changelog 278 279 279 280 = 1.1.0 =
Note: See TracChangeset
for help on using the changeset viewer.