Changeset 3191703
- Timestamp:
- 11/19/2024 12:20:57 AM (15 months ago)
- Location:
- bne-gallery-extended/trunk
- Files:
-
- 2 edited
-
bne-gallery-extended.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bne-gallery-extended/trunk/bne-gallery-extended.php
r2737188 r3191703 2 2 /* 3 3 * Plugin Name: BNE Gallery Extended 4 * Version: 1.2. 14 * Version: 1.2.2 5 5 * Description: Adds a new shortcode attribute, "display" to the WP [gallery] shortcode allowing to display the gallery as a 3D carousel or masonry grid. 6 6 * Author: Kerry Kline … … 92 92 * 93 93 * @since v1.0 94 * @updated v1.2. 194 * @updated v1.2.2 95 95 * 96 96 */ … … 169 169 170 170 // Grabs the image ID's in the [gallery] shortcode 171 $image_ids = explode( ',', $atts['ids']);171 $image_ids = explode( ',', esc_attr( $atts['ids'] ) ); 172 172 173 173 // Check if orderby is set to "rand", if so shuffle the stack … … 300 300 301 301 // Grabs the image ID's in the [gallery] shortcode 302 $image_ids = explode( ',', $atts['ids']);303 302 $image_ids = explode( ',', esc_attr( $atts['ids'] ) ); 303 304 304 // Check if orderby is set to "rand", if so shuffle the stack 305 305 if( $atts['orderby'] == 'rand' ) { shuffle( $image_ids ); } … … 309 309 foreach( $image_ids as $id ) { 310 310 $output .= '<div class="gallery-single gallery-item image-id-'.$id.' col-'.$atts['columns'].'-masonry" style="margin-bottom: '.$atts['gutter'].'px; width: '.$grid_col_width.';">'; 311 312 /* 313 LOOK AT NOT OUTPUTING THE IMAGE TWICE FOR CAPTIONS 314 MAKE SURE LINK WORKS ON HOVER 315 */ 316 311 317 312 318 // Link: File -
bne-gallery-extended/trunk/readme.txt
r2737188 r3191703 3 3 Tags: WordPress gallery, gallery, masonry gallery, carousel gallery 4 4 Requires at least: 5.0 5 Tested up to: 6. 06 Stable tag: 1.2. 15 Tested up to: 6.7 6 Stable tag: 1.2.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 83 83 == Changelog == 84 84 85 = 1.2.2 Nov 18, 2024 = 86 * Security fix for XSS via the shortcode image ID's attribute. My thanks to Peter Thaleikis for the discovery. 87 * Note that this is a legacy plugin. Users should move towards the built in block editor gallery features. 88 89 85 90 = 1.2.1 June 3, 20222 = 86 91 * Fix PHP 8.0 warning.
Note: See TracChangeset
for help on using the changeset viewer.