From 3a9ad1dd8295337268e8ea21b22d2f4d92be97af Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Wed, 18 Oct 2023 16:31:04 -0600 Subject: [PATCH 1/5] Version bump to 1.3.1 --- package-lock.json | 4 ++-- package.json | 2 +- retro-webamp-block.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0149808..2440047 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "winamp-block", - "version": "1.3.0", + "version": "1.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "winamp-block", - "version": "1.3.0", + "version": "1.3.1", "license": "GPL-2.0-or-later", "dependencies": { "@wordpress/blob": "^3.2.2", diff --git a/package.json b/package.json index c23f9ea..8da1d9e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "winamp-block", - "version": "1.3.0", + "version": "1.3.1", "description": "A Winamp-styled audio block for all your retro music player needs.", "author": { "name": "10up", diff --git a/retro-webamp-block.php b/retro-webamp-block.php index 50619d6..4a08d47 100644 --- a/retro-webamp-block.php +++ b/retro-webamp-block.php @@ -3,7 +3,7 @@ * Plugin Name: Retro Winamp Block * Plugin URI: https://wordpress.org/plugins/retro-winamp-block/ * Description: A Winamp-styled audio block for all your retro music player needs. - * Version: 1.3.0 + * Version: 1.3.1 * Requires at least: 6.1 * Requires PHP: 7.4 * Author: 10up @@ -24,7 +24,7 @@ * * @return string Minimum version required. */ -function minimum_php_requirement(): string { +function minimum_php_requirement() { return '7.4'; } @@ -35,7 +35,7 @@ function minimum_php_requirement(): string { * * @return bool True if meets minimum requirements, false otherwise. */ -function site_meets_php_requirements(): bool { +function site_meets_php_requirements() { return version_compare( phpversion(), minimum_php_requirement(), '>=' ); } From 8e55eb2e1fa54acae3048d41702f12066384fa50 Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Wed, 18 Oct 2023 16:31:10 -0600 Subject: [PATCH 2/5] Update changelog --- CHANGELOG.md | 31 +++++++++++++++++++++++-------- readme.txt | 14 ++++++++++++-- 2 files changed, 35 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7291d61..0b48582 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,20 +4,34 @@ All notable changes to this project will be documented in this file, per [the Ke ## [Unreleased] - TBD -## [1.3.0] - TBD +## [1.3.1] - 2023-10-19 +### Added +- Check for minimum required PHP version before loading the plugin (props [@kmgalanakis](https://github.com/kmgalanakis), [@Sidsector9](https://github.com/Sidsector9) via [#103](https://github.com/10up/retro-winamp-block/pull/103)). + +### Changed +- Update our dependency review GitHub Action (props [@jeffpaul](https://github.com/jeffpaul), [@Sidsector9](https://github.com/Sidsector9) via [#97](https://github.com/10up/retro-winamp-block/pull/97)). +- Bump WordPress "tested up to" version 6.3 (props [@kmgalanakis](https://github.com/kmgalanakis), [@iamdharmesh](https://github.com/iamdharmesh), [@jeffpaul](https://github.com/jeffpaul), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#102](https://github.com/10up/retro-winamp-block/pull/102), [#105](https://github.com/10up/retro-winamp-block/pull/105)). + +### Security +- Bump `semver` from 5.7.1 to 5.7.2 (props [@dependabot](https://github.com/apps/dependabot), [@ravinderk](https://github.com/ravinderk) via [#98](https://github.com/10up/retro-winamp-block/pull/98)). +- Bump `word-wrap` from 1.2.3 to 1.2.5 (props [@dependabot](https://github.com/apps/dependabot), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#106](https://github.com/10up/retro-winamp-block/pull/106)). +- Bump `tough-cookie` from 4.1.2 to 4.1.3 and `@cypress/request` from 2.88.11 to 3.0.1 (props [@dependabot](https://github.com/apps/dependabot), [@Sidsector9](https://github.com/Sidsector9) via [#107](https://github.com/10up/retro-winamp-block/pull/107), [#108](https://github.com/10up/retro-winamp-block/pull/108)). +- Bump `cypress` from 10.11.0 to 13.1.0 (props [@dependabot](https://github.com/apps/dependabot), [@Sidsector9](https://github.com/Sidsector9) via [#108](https://github.com/10up/retro-winamp-block/pull/108)). +- Bump `postcss` from 8.4.20 to 8.4.31 (props [@dependabot](https://github.com/apps/dependabot), [@faisal-alvi](https://github.com/faisal-alvi) via [#110](https://github.com/10up/retro-winamp-block/pull/110)). +## [1.3.0] - 2023-04-18 ### Added -- E2E tests using Cypress (props [@vikrampm1](https://github.com/vikrampm1), [@barneyjeffries](https://github.com/barneyjeffries), [@iamdharmesh](https://github.com/iamdharmesh), [@cadic](https://github.com/cadic)) via [#87](https://github.com/10up/retro-winamp-block/pull/87). +- E2E tests using Cypress (props [@vikrampm1](https://github.com/vikrampm1), [@barneyjeffries](https://github.com/barneyjeffries), [@iamdharmesh](https://github.com/iamdharmesh), [@cadic](https://github.com/cadic) via [#87](https://github.com/10up/retro-winamp-block/pull/87)). ### Changed -- Bump WordPress "tested up to" version from 6.1 to 6.2 (props [@jayedul](https://github.com/jayedul), [@peterwilsoncc](https://github.com/peterwilsoncc)) via [#92](https://github.com/10up/retro-winamp-block/pull/92) -- [Support Level](https://github.com/10up/retro-winamp-block#support-level) from `Active` to `Stable` (props [@jeffpaul](https://github.com/jeffpaul), [@Sidsector9](https://github.com/Sidsector9)) via [#94](https://github.com/10up/retro-winamp-block/pull/94). +- Bump WordPress "tested up to" version from 6.1 to 6.2 (props [@jayedul](https://github.com/jayedul), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#92](https://github.com/10up/retro-winamp-block/pull/92)). +- [Support Level](https://github.com/10up/retro-winamp-block#support-level) from `Active` to `Stable` (props [@jeffpaul](https://github.com/jeffpaul), [@Sidsector9](https://github.com/Sidsector9) via [#94](https://github.com/10up/retro-winamp-block/pull/94)). ### Security -- Bump `simple-git` from `3.15.1` to `3.16.0` (props [@Sidsector9](https://github.com/Sidsector9)) via [#82](https://github.com/10up/retro-winamp-block/pull/82). -- Bump `http-cache-semantics` from `4.1.0` to `4.1.1` (props [@peterwilsoncc](https://github.com/peterwilsoncc)) via [#85](https://github.com/10up/retro-winamp-block/pull/85). -- Bump `@sideway/formula` from `3.0.0` to `3.0.1` (props [@faisal-alvi](https://github.com/faisal-alvi)) via [#86](https://github.com/10up/retro-winamp-block/pull/86). -- Bump `webpack` from `5.73.0` to `5.76.2` (props [@faisal-alvi](https://github.com/faisal-alvi)) via [#90](https://github.com/10up/retro-winamp-block/pull/90). +- Bump `simple-git` from `3.15.1` to `3.16.0` (props [@Sidsector9](https://github.com/Sidsector9) via [#82](https://github.com/10up/retro-winamp-block/pull/82)). +- Bump `http-cache-semantics` from `4.1.0` to `4.1.1` (props [@peterwilsoncc](https://github.com/peterwilsoncc) via [#85](https://github.com/10up/retro-winamp-block/pull/85)). +- Bump `@sideway/formula` from `3.0.0` to `3.0.1` (props [@faisal-alvi](https://github.com/faisal-alvi) via [#86](https://github.com/10up/retro-winamp-block/pull/86)). +- Bump `webpack` from `5.73.0` to `5.76.2` (props [@faisal-alvi](https://github.com/faisal-alvi) via [#90](https://github.com/10up/retro-winamp-block/pull/90)). ## [1.2.0] - 2023-01-30 **Note that this release changes the minimum PHP version to from 5.6 to 7.4.** @@ -80,6 +94,7 @@ All notable changes to this project will be documented in this file, per [the Ke - Initial release of the Winamp Block plugin. 🎉 [Unreleased]: https://github.com/10up/retro-winamp-block/compare/trunk...develop +[1.3.1]: https://github.com/10up/retro-winamp-block/compare/1.3.0...1.3.1 [1.3.0]: https://github.com/10up/retro-winamp-block/compare/1.2.0...1.3.0 [1.2.0]: https://github.com/10up/retro-winamp-block/compare/1.1.0...1.2.0 [1.1.0]: https://github.com/10up/retro-winamp-block/compare/1.0.1...1.1.0 diff --git a/readme.txt b/readme.txt index dd6531d..6705cfd 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: 10up, dinhtungdu, fabiankaegy, dkotter, melchoyce, jeffpaul Tags: winamp, webamp, mp3, music, audio, player, playlist, equalizer, block Requires at least: 6.1 Tested up to: 6.3 -Stable tag: 1.3.0 +Stable tag: 1.3.1 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -45,7 +45,17 @@ Details on how to create a new skin is available [here](https://github.com/WACUP == Changelog == -= 1.3.0 - TBD = += 1.3.1 - 2023-10-19 = +* **Added:** Check for minimum required PHP version before loading the plugin (props [@kmgalanakis](https://github.com/kmgalanakis), [@Sidsector9](https://github.com/Sidsector9) via [#103](https://github.com/10up/retro-winamp-block/pull/103)). +* **Changed:** Update our dependency review GitHub Action (props [@jeffpaul](https://github.com/jeffpaul), [@Sidsector9](https://github.com/Sidsector9) via [#97](https://github.com/10up/retro-winamp-block/pull/97)). +* **Changed:** Bump WordPress "tested up to" version 6.3 (props [@kmgalanakis](https://github.com/kmgalanakis), [@iamdharmesh](https://github.com/iamdharmesh), [@jeffpaul](https://github.com/jeffpaul), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#102](https://github.com/10up/retro-winamp-block/pull/102), [#105](https://github.com/10up/retro-winamp-block/pull/105)). +* **Security:** Bump `semver` from 5.7.1 to 5.7.2 (props [@dependabot](https://github.com/apps/dependabot), [@ravinderk](https://github.com/ravinderk) via [#98](https://github.com/10up/retro-winamp-block/pull/98)). +* **Security:** Bump `word-wrap` from 1.2.3 to 1.2.5 (props [@dependabot](https://github.com/apps/dependabot), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#106](https://github.com/10up/retro-winamp-block/pull/106)). +* **Security:** Bump `tough-cookie` from 4.1.2 to 4.1.3 and `@cypress/request` from 2.88.11 to 3.0.1 (props [@dependabot](https://github.com/apps/dependabot), [@Sidsector9](https://github.com/Sidsector9) via [#107](https://github.com/10up/retro-winamp-block/pull/107), [#108](https://github.com/10up/retro-winamp-block/pull/108)). +* **Security:** Bump `cypress` from 10.11.0 to 13.1.0 (props [@dependabot](https://github.com/apps/dependabot), [@Sidsector9](https://github.com/Sidsector9) via [#108](https://github.com/10up/retro-winamp-block/pull/108)). +* **Security:** Bump `postcss` from 8.4.20 to 8.4.31 (props [@dependabot](https://github.com/apps/dependabot), [@faisal-alvi](https://github.com/faisal-alvi) via [#110](https://github.com/10up/retro-winamp-block/pull/110)). + += 1.3.0 - 2023-04-18 = * **Added:** E2E tests using Cypress (props [@vikrampm1](https://github.com/vikrampm1), [@barneyjeffries](https://github.com/barneyjeffries), [@iamdharmesh](https://github.com/iamdharmesh), [@cadic](https://github.com/cadic)) via [#87](https://github.com/10up/retro-winamp-block/pull/87). * **Changed:** Bump WordPress "tested up to" version from 6.1 to 6.2 (props [@jayedul](https://github.com/jayedul), [@peterwilsoncc](https://github.com/peterwilsoncc)) via [#92](https://github.com/10up/retro-winamp-block/pull/92) * **Changed:** [Support Level](https://github.com/10up/retro-winamp-block#support-level) from `Active` to `Stable` (props [@jeffpaul](https://github.com/jeffpaul), [@Sidsector9](https://github.com/Sidsector9)) via [#94](https://github.com/10up/retro-winamp-block/pull/94). From 4398b3a153e2f4791d49424c30ad28ec0b7c9897 Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Wed, 18 Oct 2023 16:33:23 -0600 Subject: [PATCH 3/5] Update CREDITS.md --- CREDITS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CREDITS.md b/CREDITS.md index 6afb814..c156636 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -12,7 +12,7 @@ The following individuals are responsible for curating the list of issues, respo Thank you to all the people who have already contributed to this repository via bug reports, code, design, ideas, project management, translation, testing, etc. -[Jeffrey Paul (@jeffpaul)](https://github.com/jeffpaul), [Tung Du (@dinhtungdu)](https://github.com/dinhtungdu), [Fabian Kägy (@fabiankaegy)](https://github.com/fabiankaegy), [Darin Kotter (@dkotter)](https://github.com/dkotter), [Mel Choyce-Dwan (@melchoyce)](https://github.com/melchoyce), [Crisoforo Gaspar Hernández (@mitogh)](https://github.com/mitogh), [Helen Hou-Sandi (@helen)](https://github.com/helen), [Sudip Dadhaniya (@sudip-10up)](https://github.com/sudip-10up), [Dharmesh Patel (@iamdharmesh)](https://github.com/iamdharmesh), [Peter Wilson (@peterwilsoncc)](https://github.com/peterwilsoncc), [Faisal Alvi (@faisal-alvi)](https://github.com/faisal-alvi), [Siddharth Thevaril (@Sidsector9)](https://github.com/Sidsector9), [Vikram Moparthy (@vikrampm1)](https://github.com/vikrampm1), [Peter Wilson (@peterwilsoncc)](https://github.com/peterwilsoncc), [Quamruz Zaman (@zamanq)](https://github.com/zamanq), [Ian Svoboda (@iansvo)](https://github.com/iansvo), [Ajay Maurya (@ajmaurya99)](https://github.com/ajmaurya99), [Max Lyuchin (@cadic)](https://github.com/cadic), [Jayedul Kabir (@jayedul)](https://github.com/jayedul), [Barney Jeffries (@barneyjeffries)](https://github.com/barneyjeffries). +[Jeffrey Paul (@jeffpaul)](https://github.com/jeffpaul), [Tung Du (@dinhtungdu)](https://github.com/dinhtungdu), [Fabian Kägy (@fabiankaegy)](https://github.com/fabiankaegy), [Darin Kotter (@dkotter)](https://github.com/dkotter), [Mel Choyce-Dwan (@melchoyce)](https://github.com/melchoyce), [Crisoforo Gaspar Hernández (@mitogh)](https://github.com/mitogh), [Helen Hou-Sandi (@helen)](https://github.com/helen), [Sudip Dadhaniya (@sudip-10up)](https://github.com/sudip-10up), [Dharmesh Patel (@iamdharmesh)](https://github.com/iamdharmesh), [Peter Wilson (@peterwilsoncc)](https://github.com/peterwilsoncc), [Faisal Alvi (@faisal-alvi)](https://github.com/faisal-alvi), [Siddharth Thevaril (@Sidsector9)](https://github.com/Sidsector9), [Vikram Moparthy (@vikrampm1)](https://github.com/vikrampm1), [Peter Wilson (@peterwilsoncc)](https://github.com/peterwilsoncc), [Quamruz Zaman (@zamanq)](https://github.com/zamanq), [Ian Svoboda (@iansvo)](https://github.com/iansvo), [Ajay Maurya (@ajmaurya99)](https://github.com/ajmaurya99), [Max Lyuchin (@cadic)](https://github.com/cadic), [Jayedul Kabir (@jayedul)](https://github.com/jayedul), [Barney Jeffries (@barneyjeffries)](https://github.com/barneyjeffries), [Konstantinos Galanakis (@kmgalanakis)](https://github.com/kmgalanakis), [Ravinder Kumar (@ravinderk)](https://github.com/ravinderk), [GitHub Dependabot (@dependabot)](https://github.com/apps/dependabot). ## Libraries From 304667194c9861071551b9a483d8c9494e9e1069 Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Wed, 18 Oct 2023 16:35:27 -0600 Subject: [PATCH 4/5] Exclude a couple files from the final build --- .distignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.distignore b/.distignore index a73708b..b8caf4d 100644 --- a/.distignore +++ b/.distignore @@ -4,6 +4,7 @@ /.wordpress-org /node_modules /src +/tests /vendor # Files @@ -11,6 +12,7 @@ CHANGELOG.md CODE_OF_CONDUCT.md composer.json +composer.lock CONTRIBUTING.md CREDITS.md LICENSE.md From 426d985bd64d12bf46a5518e29258bffd140d32d Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Wed, 18 Oct 2023 16:50:07 -0600 Subject: [PATCH 5/5] Fix a few more PHP 7+ things in the main plugin file so our PHP requirement check always works --- retro-webamp-block.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/retro-webamp-block.php b/retro-webamp-block.php index 4a08d47..6a417de 100644 --- a/retro-webamp-block.php +++ b/retro-webamp-block.php @@ -110,8 +110,8 @@ function ( $block_content, $block, $instance ) { if ( 'core/audio' !== $block['blockName'] ) { return $block_content; } - $attributes = $block['attrs'] ?? array(); - $attachment_id = $attributes['id'] ?? 0; + $attributes = isset( $block['attrs'] ) ? $block['attrs'] : array(); + $attachment_id = isset( $attributes['id'] ) ? $attributes['id'] : 0; $attachment = get_post( $attachment_id ); // Stop here if $attachment can't be found. @@ -120,8 +120,8 @@ function ( $block_content, $block, $instance ) { } $metadata = wp_get_attachment_metadata( $attachment_id ); - $artist = $metadata['artist'] ?? ''; - $title = $metadata['title'] ?? ''; + $artist = isset( $metadata['artist'] ) ? $metadata['artist'] : ''; + $title = isset( $metadata['title'] ) ? $metadata['title'] : ''; $new_props = array( 'artist' => $artist, 'title' => $title,