Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | n/a |
0 / 0 |
|
| jetpack_mu_wpcom_admin_css_monkey_patches | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
6 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * CSS monkey patches. |
| 4 | * |
| 5 | * @package jetpack-mu-wpcom |
| 6 | */ |
| 7 | |
| 8 | add_action( 'admin_enqueue_scripts', 'jetpack_mu_wpcom_admin_css_monkey_patches' ); |
| 9 | |
| 10 | /** |
| 11 | * Enqueue the CSS monkey patches. |
| 12 | */ |
| 13 | function jetpack_mu_wpcom_admin_css_monkey_patches() { |
| 14 | /** |
| 15 | * Only enqueue the Elementor fix on the Elementor admin page. |
| 16 | */ |
| 17 | if ( 'toplevel_page_elementor' === get_current_screen()->id ) { |
| 18 | wp_enqueue_style( 'jetpack-elementor-fix', plugins_url( 'jetpack-elementor-fix.css', __FILE__ ), array(), filemtime( __DIR__ . '/jetpack-elementor-fix.css' ) ); |
| 19 | } |
| 20 | } |