Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | n/a |
0 / 0 |
|
| jetpack_mu_wpcom_gutenberg_enable_custom_line_height | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * Enable line-height settings for all themes with Gutenberg. |
| 4 | * |
| 5 | * @package jetpack-mu-wpcom |
| 6 | */ |
| 7 | |
| 8 | /** |
| 9 | * Prior to Gutenberg 8.6, line-height was always enabled, which meant that wpcom |
| 10 | * users had been utilizing the feature. With the 8.6 release, though, line-height |
| 11 | * was turned off by default unless the theme supported it. As a result, users |
| 12 | * suddenly were no longer able to access the settings they previously had access |
| 13 | * to. This turns the setting on for all wpcom users regardless of theme. |
| 14 | * |
| 15 | * @see https://github.com/WordPress/gutenberg/pull/23904 |
| 16 | **/ |
| 17 | function jetpack_mu_wpcom_gutenberg_enable_custom_line_height() { |
| 18 | add_theme_support( 'custom-line-height' ); |
| 19 | } |
| 20 | add_action( 'after_setup_theme', 'jetpack_mu_wpcom_gutenberg_enable_custom_line_height' ); |