From 16c57e98832fe4ac473cdb8977175dc3e7860edf Mon Sep 17 00:00:00 2001 From: Dhanendran Rajagopal Date: Fri, 24 Nov 2023 16:27:40 +0530 Subject: [PATCH 1/5] Fix php warning and update tested wp version --- includes/functions/print-issue.php | 7 +++++-- readme.txt | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/includes/functions/print-issue.php b/includes/functions/print-issue.php index 26c62e9..284da17 100644 --- a/includes/functions/print-issue.php +++ b/includes/functions/print-issue.php @@ -402,8 +402,11 @@ function get_side_metabox_order( $order ) { // Make submit div last. if ( 'side' === $location ) { - // Remove submitdiv by value. - unset( $order[ $location ][ array_flip( $order[ $location ] )['submitdiv'] ] ); + $locations = array_flip( $order[ $location ] ); + if ( isset( $locations['submitdiv'] ) ) { + unset( $order[ $location ][ $locations['submitdiv'] ] ); + } + $order[ $location ][] = 'submitdiv'; } diff --git a/readme.txt b/readme.txt index eea247d..6433702 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: 10up, observerteam, joshlevinson, brs14ku, jeffpaul Tags: print, workflow, editorial Requires at least: 5.7 -Tested up to: 6.3 +Tested up to: 6.4 Stable tag: 1.2.3 Requires PHP: 7.4 License: GPLv2 or later From 6e2b9dd2c4b4a417f6ed371937ee332b4c5e5348 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Thu, 4 Jan 2024 12:50:20 -0600 Subject: [PATCH 2/5] Update CODEOWNERS --- .github/CODEOWNERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ed896bd..f7c781f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,5 +1,5 @@ -# These owners will be the default owners for everything in the repo. Unless a later match takes precedence, @10up/open-source-practice, as primary maintainers will be requested for review when someone opens a Pull Request. -* @10up/open-source-practice +# These owners will be the default owners for everything in the repo. Unless a later match takes precedence, @jeffpaul @dkotter, as primary maintainers will be requested for review when someone opens a Pull Request. +* @jeffpaul @dkotter # GitHub and WordPress.org specifics /.github/ @jeffpaul From 6baddbb2e4e8783b17a1ab7730f20fcd7efa2c2d Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Wed, 28 Feb 2024 10:08:52 -0700 Subject: [PATCH 3/5] Version bump to 1.2.4 --- eight-day-week.php | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- readme.txt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/eight-day-week.php b/eight-day-week.php index 1840553..4e09597 100644 --- a/eight-day-week.php +++ b/eight-day-week.php @@ -2,7 +2,7 @@ /** * Plugin Name: Eight Day Week * Description: Tools that help improve digital & print workflows. - * Version: 1.2.3 + * Version: 1.2.4 * Author: 10up * Author URI: https://10up.com * License: GPLv2+ @@ -36,7 +36,7 @@ require_once __DIR__ . '/plugins.php'; // Useful global constants. -define( 'EDW_VERSION', '1.2.3' ); +define( 'EDW_VERSION', '1.2.4' ); define( 'EDW_URL', Eight_Day_Week\plugins_url( __FILE__ ) ); define( 'EDW_PATH', __DIR__ . '/' ); define( 'EDW_INC', EDW_PATH . 'includes/' ); diff --git a/package-lock.json b/package-lock.json index ab3b47e..1bc8b3c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "eight-day-week", - "version": "1.2.3", + "version": "1.2.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "eight-day-week", - "version": "1.2.3", + "version": "1.2.4", "devDependencies": { "@10up/cypress-wp-utils": "github:10up/cypress-wp-utils#build", "@wordpress/env": "^5.7.0", diff --git a/package.json b/package.json index 4bc396a..ed1b387 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "eight-day-week", "title": "Eight Day Week", "description": "Tools that help improve the digital/print production workflows.", - "version": "1.2.3", + "version": "1.2.4", "homepage": "http://10up.com", "repository": { "type": "git", diff --git a/readme.txt b/readme.txt index 6433702..b9309a8 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: 10up, observerteam, joshlevinson, brs14ku, jeffpaul Tags: print, workflow, editorial Requires at least: 5.7 Tested up to: 6.4 -Stable tag: 1.2.3 +Stable tag: 1.2.4 Requires PHP: 7.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html From f5a100c3b9bd72a1b3cb1a1a56f45728987cfc9c Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Wed, 28 Feb 2024 10:12:51 -0700 Subject: [PATCH 4/5] Update changelog --- CHANGELOG.md | 11 +++++++++++ readme.txt | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66a32cb..c16aa35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file, per [the Ke ## [Unreleased] +## [1.2.4] - 2024-02-29 +### Added +- Support for the WordPress.org plugin preview (props [@dkotter](https://github.com/dkotter), [@jeffpaul](https://github.com/jeffpaul) via [#137](https://github.com/10up/eight-day-week/pull/137)). + +### Changed +- Bump WordPress "tested up to" version to 6.4 (props [@dhanendran](https://github.com/dhanendran), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#136](https://github.com/10up/eight-day-week/pull/136)). + +### Fixed +- Undefined array key PHP warning (props [@dhanendran](https://github.com/dhanendran), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#136](https://github.com/10up/eight-day-week/pull/136)). + ## [1.2.3] - 2023-09-20 ### Added - Error handling for environments that don't match our minimum PHP version (props [@bmarshall511](https://github.com/bmarshall511), [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter), [@vikrampm1](https://github.com/vikrampm1) via [#132](https://github.com/10up/eight-day-week/pull/132)). @@ -119,6 +129,7 @@ All notable changes to this project will be documented in this file, per [the Ke - Initial Release [Unreleased]: https://github.com/10up/eight-day-week/compare/trunk...develop +[1.2.4]: https://github.com/10up/eight-day-week/compare/1.2.3...1.2.4 [1.2.3]: https://github.com/10up/eight-day-week/compare/1.2.2...1.2.3 [1.2.2]: https://github.com/10up/eight-day-week/compare/1.2.1...1.2.2 [1.2.1]: https://github.com/10up/eight-day-week/compare/1.2.0...1.2.1 diff --git a/readme.txt b/readme.txt index b9309a8..87084fe 100644 --- a/readme.txt +++ b/readme.txt @@ -180,6 +180,11 @@ Gutenberg-based exports include some additional metadata/details that a Classic == Changelog == += 1.2.4 - 2024-02-29 = +* **Added:** Support for the WordPress.org plugin preview (props [@dkotter](https://github.com/dkotter), [@jeffpaul](https://github.com/jeffpaul) via [#137](https://github.com/10up/eight-day-week/pull/137)). +* **Changed:** Bump WordPress "tested up to" version to 6.4 (props [@dhanendran](https://github.com/dhanendran), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#136](https://github.com/10up/eight-day-week/pull/136)). +* **Fixed:** Undefined array key PHP warning (props [@dhanendran](https://github.com/dhanendran), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#136](https://github.com/10up/eight-day-week/pull/136)). + = 1.2.3 - 2023-09-20 = * **Added:** Error handling for environments that don't match our minimum PHP version (props [@bmarshall511](https://github.com/bmarshall511), [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter), [@vikrampm1](https://github.com/vikrampm1) via [#132](https://github.com/10up/eight-day-week/pull/132)). * **Fixed:** Ensure multiple articles can be saved within each Print Issue section (props [@dkotter](https://github.com/dkotter), [@xLesy](https://github.com/xLesy), [@iamdharmesh](https://github.com/iamdharmesh) via [#131](https://github.com/10up/eight-day-week/pull/131)). From aa3a54dda1a8181674cda7bf7d0044d3874bbf92 Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Wed, 28 Feb 2024 10:18:50 -0700 Subject: [PATCH 5/5] Install older version of a mochawesome add-on to get around an issue --- package-lock.json | 23 +++++++++++++++++++++++ package.json | 1 + 2 files changed, 24 insertions(+) diff --git a/package-lock.json b/package-lock.json index 1bc8b3c..42428b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,6 +27,7 @@ "grunt-phpunit": "^0.3.6", "grunt-wp-readme-to-markdown": "^2.0.1", "load-grunt-tasks": "^5.1.0", + "mochawesome-json-to-md": "^0.7.2", "qunit": "^2.9.3" } }, @@ -4769,6 +4770,19 @@ "mocha": ">=7" } }, + "node_modules/mochawesome-json-to-md": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/mochawesome-json-to-md/-/mochawesome-json-to-md-0.7.2.tgz", + "integrity": "sha512-dxh+o73bhC6nEph6fNky9wy35R+2oK3ueXwAlJ/COAanlFgu8GuvGzQ00VNO4PPYhYGDsO4vbt4QTcMA3lv25g==", + "deprecated": "🙌 Thanks for using it. We recommend upgrading to the newer version, 1.x.x. Check out https://www.npmjs.com/package/mochawesome-json-to-md for details.", + "dev": true, + "dependencies": { + "yargs": "^17.0.1" + }, + "bin": { + "mochawesome-json-to-md": "index.js" + } + }, "node_modules/mochawesome-merge": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/mochawesome-merge/-/mochawesome-merge-4.3.0.tgz", @@ -10745,6 +10759,15 @@ } } }, + "mochawesome-json-to-md": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/mochawesome-json-to-md/-/mochawesome-json-to-md-0.7.2.tgz", + "integrity": "sha512-dxh+o73bhC6nEph6fNky9wy35R+2oK3ueXwAlJ/COAanlFgu8GuvGzQ00VNO4PPYhYGDsO4vbt4QTcMA3lv25g==", + "dev": true, + "requires": { + "yargs": "^17.0.1" + } + }, "mochawesome-merge": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/mochawesome-merge/-/mochawesome-merge-4.3.0.tgz", diff --git a/package.json b/package.json index ed1b387..6d8d989 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "grunt-phpunit": "^0.3.6", "grunt-wp-readme-to-markdown": "^2.0.1", "load-grunt-tasks": "^5.1.0", + "mochawesome-json-to-md": "^0.7.2", "qunit": "^2.9.3" }, "keywords": [],