if ( has_filter( 'widget_text_content', 'do_shortcode'
) && !
$widget_text_do_shortcode_priority ) { if ( !
empty( $instance['filter'
] ) ) { $text =
shortcode_unautop( $text );
} $text =
do_shortcode( $text );
} } // Restore post global.
$post =
$original_post;
remove_filter( 'shortcode_atts_gallery', array
( $this, '_filter_gallery_shortcode_attrs'
) );
// Undo suspension of legacy plugin-supplied shortcode handling.
if ( $should_suspend_legacy_shortcode_support ) { add_filter( 'widget_text', 'do_shortcode',
$widget_text_do_shortcode_priority );
}