Skip to content

Commit

Permalink
Merge pull request #136 from 10up/fix/135
Browse files Browse the repository at this point in the history
Fix php warning and update tested wp version
  • Loading branch information
peterwilsoncc authored Jan 8, 2024
2 parents f779ea8 + d21f7b6 commit b82f92b
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 b82f92b

Please sign in to comment.