| @@ -29,8 +29,26 @@ | ||
| 29 | 29 | return 'divider'; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | + * Get divider control default settings. | |
| 34 | + * | |
| 35 | + * Retrieve the default settings of the divider control. Used to | |
| 36 | + * return the default settings while initializing the divider | |
| 37 | + * control. | |
| 38 | + * | |
| 39 | + * @since 2.0.0 | |
| 40 | + * @access protected | |
| 41 | + * | |
| 42 | + * @return array Control default settings. | |
| 43 | + */ | |
| 44 | + protected function get_default_settings() { | |
| 45 | + return [ | |
| 46 | + 'separator' => 'none', | |
| 47 | + ]; | |
| 48 | + } | |
| 49 | + | |
| 50 | + /** | |
| 33 | 51 | * Render divider control output in the editor. |
| 34 | 52 | * |
| 35 | 53 | * Used to generate the control HTML in the editor using Underscore JS |
| 36 | 54 | * template. The variables for the class are available using `data` JS |