mirror of
https://github.com/10h30/genesis-simple-sidebars.git
synced 2026-07-11 18:46:05 +09:00
Fix hanging when a sidebar with the same id is added.
This commit is contained in:
committed by
Nathan Rice
parent
70084ece61
commit
1707410622
@@ -249,7 +249,8 @@ class Genesis_Simple_Sidebars_Admin extends Genesis_Admin_Basic {
|
|||||||
if ( ! $id || is_registered_sidebar( $id ) ) {
|
if ( ! $id || is_registered_sidebar( $id ) ) {
|
||||||
$n = count( $db ) + 1;
|
$n = count( $db ) + 1;
|
||||||
do {
|
do {
|
||||||
$id = 'gss-sidebar-' . [ $n++ ];
|
$n = $n++;
|
||||||
|
$id = 'gss-sidebar-' . $n;
|
||||||
} while ( is_registered_sidebar( $id ) );
|
} while ( is_registered_sidebar( $id ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user