| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | function callback( $path = '', $blog_id = 0 ) { |
||
| 13 | // Switch to the given blog. |
||
| 14 | $blog_id = $this->api->switch_to_blog_and_validate_user( $this->api->get_blog_id( $blog_id ) ); |
||
|
|
|||
| 15 | if ( is_wp_error( $blog_id ) ) { |
||
| 16 | return $blog_id; |
||
| 17 | } |
||
| 18 | |||
| 19 | $args = array( |
||
| 20 | 'css' => Jetpack_Custom_CSS::get_css(), |
||
| 21 | 'preprocessor' => Jetpack_Custom_CSS::get_preprocessor_key(), |
||
| 22 | 'add_to_existing' => ! Jetpack_Custom_CSS::skip_stylesheet(), |
||
| 23 | ); |
||
| 24 | |||
| 25 | $defaults = array( |
||
| 26 | 'css' => '', |
||
| 27 | 'preprocessor' => '', |
||
| 28 | 'add_to_existing' => true, |
||
| 29 | ); |
||
| 30 | return wp_parse_args( $args, $defaults ); |
||
| 31 | } |
||
| 32 | } |
||
| 35 |