| @@ -85,9 +85,9 @@ | ||
| 85 | 85 | |
| 86 | 86 | if ( VISUALIZER_PRO ) { |
| 87 | 87 | $type = 'pro'; |
| 88 | 88 | if ( apply_filters( 'visualizer_is_business', false ) ) { |
| 89 | - $type = 'business'; | |
| 89 | + $type = 'developer'; | |
| 90 | 90 | } |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | $translation_array = array( |
| @@ -120,13 +120,15 @@ | ||
| 120 | 120 | /** |
| 121 | 121 | * Gutenberg Block Callback Function |
| 122 | 122 | */ |
| 123 | 123 | public function gutenberg_block_callback( $attr ) { |
| 124 | - $id = $attr['id']; | |
| 125 | - if ( empty( $id ) || $id === 'none' ) { | |
| 126 | - return ''; // no id = no fun | |
| 124 | + if ( isset( $attr['id'] ) ) { | |
| 125 | + $id = $attr['id']; | |
| 126 | + if ( empty( $id ) || $id === 'none' ) { | |
| 127 | + return ''; // no id = no fun | |
| 128 | + } | |
| 129 | + return '[visualizer id="' . $id . '"]'; | |
| 127 | 130 | } |
| 128 | - return '[visualizer id="' . $id . '"]'; | |
| 129 | 131 | } |
| 130 | 132 | |
| 131 | 133 | /** |
| 132 | 134 | * Hook server side rendering into render callback |