| @@ -75,26 +75,8 @@ | ||
| 75 | 75 | return false; |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | - * Get style dependencies. | |
| 80 | - * | |
| 81 | - * Retrieve the list of style dependencies the widget requires. | |
| 82 | - * | |
| 83 | - * @since 3.24.0 | |
| 84 | - * @access public | |
| 85 | - * | |
| 86 | - * @return array Widget style dependencies. | |
| 87 | - */ | |
| 88 | - public function get_style_depends(): array { | |
| 89 | - return [ 'widget-menu-anchor' ]; | |
| 90 | - } | |
| 91 | - | |
| 92 | - public function has_widget_inner_wrapper(): bool { | |
| 93 | - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); | |
| 94 | - } | |
| 95 | - | |
| 96 | - /** | |
| 97 | 79 | * Register menu anchor widget controls. |
| 98 | 80 | * |
| 99 | 81 | * Adds different input fields to allow the user to change and customize the widget settings. |
| 100 | 82 | * |
| @@ -193,12 +175,8 @@ | ||
| 193 | 175 | ); |
| 194 | 176 | #> |
| 195 | 177 | <div {{{ view.getRenderAttributeString( 'inner' ) }}}></div> |
| 196 | 178 | <?php |
| 197 | - } | |
| 198 | - | |
| 199 | - public function render_markdown(): string { | |
| 200 | - return ''; | |
| 201 | 179 | } |
| 202 | 180 | |
| 203 | 181 | protected function on_save( array $settings ) { |
| 204 | 182 | $settings['anchor'] = sanitize_html_class( $settings['anchor'] ); |