Skip to content

Commit 93e4390

Browse files
committed
Fixed undefined variable issue
1 parent 502e740 commit 93e4390

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/js/common/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}
2929

3030
// Bind event to clear theme cache Admin Bar link
31-
if( _wpbp_plugin_settings['show_clear_cache_link'] && _wpbp_plugin_settings['admin_bar_add_clear_cache'] ) {
31+
if( typeof _wpbp_plugin_settings !== 'undefined' && _wpbp_plugin_settings['show_clear_cache_link'] && _wpbp_plugin_settings['admin_bar_add_clear_cache'] ) {
3232
$( '#wpadminbar' ).waitUntilExists(function() {
3333
$('#wp-admin-bar-clear_object_cache').on( 'click', function( event ) {
3434
event.preventDefault();

0 commit comments

Comments
 (0)