Skip to content

Commit

Permalink
Merge branch 'release-2.9.3' into releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Archetyped committed Nov 18, 2022
2 parents 238e75a + 296366f commit 5f8c399
Show file tree
Hide file tree
Showing 10 changed files with 593 additions and 5,269 deletions.
2 changes: 0 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module.exports = function(grunt) {
// Load tasks
require('load-grunt-tasks')(grunt);
// Display task timing
require('time-grunt')(grunt);
// Project configuration.
grunt.initConfig({
// Metadata
Expand Down
7 changes: 7 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
= 2.9.3 =

* Hotfix: WordPress 6.1 `wp_rand()` bug (32-bit platforms) ([#974](https://github.com/archetyped/simple-lightbox/issues/974))
* Update: Confirm WordPress 6.1 compatibility
* Optimize: Media item cache key generation
* Optimize: Prune build tasks

= 2.9.2 =

* Optimize: Symbolic link handing for file/directory paths.
Expand Down
2 changes: 1 addition & 1 deletion controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ private function cache_media_item( $uri, $type, $internal, $props = null ) {
if ( null === $key ) {
// Generate Unique ID.
do {
$key = (string) wp_rand();
$key = mt_rand();
} while ( isset( $this->media_items_raw['props'][ $key ] ) );
// Build properties object.
$i = $this->media_item_template;
Expand Down
14 changes: 0 additions & 14 deletions grunt/phplint.js

This file was deleted.

4 changes: 2 additions & 2 deletions grunt/sass.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = function(grunt) {

const sass = require('node-sass');
const sass = require('sass');

grunt.config('sass', {
options : {
Expand Down Expand Up @@ -34,4 +34,4 @@ grunt.config('sass', {
}
});

};
};
9 changes: 1 addition & 8 deletions grunt/watch.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
module.exports = function(grunt) {

grunt.config('watch', {
phplint : {
files : '<%= paths.php.files_std %>',
tasks : ['phplint'],
options : {
spawn : false
}
},
sass_core : {
files : ['<%= paths.sass.base_src %>/**/*.scss'],
tasks : ['sass:core']
Expand Down Expand Up @@ -54,4 +47,4 @@ grunt.event.on('watch', function(action, filepath) {
}
});

};
};
2 changes: 1 addition & 1 deletion main.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Plugin Name: Simple Lightbox
* Plugin URI: http://archetyped.com/tools/simple-lightbox/
* Description: The highly customizable lightbox for WordPress
* Version: 2.9.2
* Version: 2.9.3
* Requires at least: 5.3
* Requires PHP: 5.6.20
* Text Domain: simple-lightbox
Expand Down
Loading

0 comments on commit 5f8c399

Please sign in to comment.