Fix hanging when a sidebar with the same id is added.

This commit is contained in:
Marcos Schratzenstaller
2019-05-01 08:02:45 -03:00
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 ) ) {
$n = count( $db ) + 1;
do {
$id = 'gss-sidebar-' . [ $n++ ];
$n = $n++;
$id = 'gss-sidebar-' . $n;
} while ( is_registered_sidebar( $id ) );
}