Skip to content

Commit

Permalink
Fix php warning and update tested wp version
Browse files Browse the repository at this point in the history
  • Loading branch information
dhanendran committed Nov 24, 2023
1 parent 8533cfa commit 16c57e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions includes/functions/print-issue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16c57e9

Please sign in to comment.