| @@ -89,9 +89,8 @@ | ||
| 89 | 89 | if ( $stop_further ) { |
| 90 | 90 | return false; |
| 91 | 91 | } |
| 92 | 92 | if ( Hub_Connector::should_render() ) { |
| 93 | - wp_dequeue_script( 'def-iplockout' ); | |
| 94 | 93 | // Custimize the text. |
| 95 | 94 | add_filter( |
| 96 | 95 | 'wpmudev_hub_connector_localize_text_vars', |
| 97 | 96 | array( 'WP_Defender\Component\Hub_Connector', 'customize_text_vars' ), |
| @@ -116,9 +115,9 @@ | ||
| 116 | 115 | } else { |
| 117 | 116 | $content = $view->render( $view_file, $params ); |
| 118 | 117 | } |
| 119 | 118 | |
| 120 | - if ( ! empty( $this->layout ) ) { | |
| 119 | + if ( null !== $this->layout && '' !== $this->layout ) { | |
| 121 | 120 | $template = new View( $base_path . 'view' . DIRECTORY_SEPARATOR . 'layouts' ); |
| 122 | 121 | $content = $template->render( |
| 123 | 122 | $this->layout, |
| 124 | 123 | array_merge( |