We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec903fb commit 3424918Copy full SHA for 3424918
1 file changed
inc/plugins/_plugin.class.php
@@ -4015,6 +4015,14 @@ function get_edit_settings_url()
4015
*/
4016
function init_widget_params( $params, $default_params = array() )
4017
{
4018
+ if( isset( $params['wi_ID'] ) &&
4019
+ ( ! isset( $this->current_widget_ID ) || $this->current_widget_ID != $params['wi_ID'] ) )
4020
+ { // Reset widget params on switch plugin to display next widget:
4021
+ $this->widget_params = NULL;
4022
+ // Store current widget ID to know when next widget is started to display:
4023
+ $this->current_widget_ID = $params['wi_ID'];
4024
+ }
4025
+
4026
if( ! isset( $this->widget_params ) )
4027
{ // Don't initialize params twice:
4028
$this->widget_params = array_merge( $default_params, $params );
0 commit comments