Fix warning when viewing template order for the first time

This commit is contained in:
Brian Miyaji
2021-11-06 00:51:55 +09:00
parent 8f1becc68f
commit f84beeb71a

View File

@@ -101,7 +101,7 @@ class SP_Settings_Page {
$layout = array_keys( $templates );
}
$templates = array_merge( array_flip( $layout ), $templates );
$templates = array_merge( array_flip( (array) $layout ), $templates );
$slice = array_search( 'tabs', array_keys( $templates ) );
if ( $slice ) {
@@ -155,7 +155,7 @@ class SP_Settings_Page {
$layout = array_keys( $templates );
}
$templates = array_merge( array_flip( $layout ), $templates );
$templates = array_merge( array_flip( (array) $layout ), $templates );
$slice = array_search( 'tabs', array_keys( $templates ) );
if ( $slice ) {