We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d18aa07 + 1d4c0de commit 36bef7fCopy full SHA for 36bef7f
inc/sidebars-emulator.php
@@ -50,7 +50,9 @@ function __call( $name, $args ) {
50
if ( $instance_class == $widget_class && ! empty( $sidebar_id ) ) {
51
//The option value uses only the widget id number as keys
52
preg_match( '/-([0-9]+$)/', $sidebar_id, $num_match );
53
- $args[0][ $num_match[1] ] = $widget_instance;
+ if ( ! empty( $num_match ) ) {
54
+ $args[0][ $num_match[1] ] = $widget_instance;
55
+ }
56
}
57
58
0 commit comments