| Conditions | 7 |
| Paths | 5 |
| Total Lines | 23 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | if ( is_front_page() && 'posts' !== get_option( 'show_on_front' ) ) { |
||
| 33 | $classes[] = 'strip-front-page'; |
||
| 34 | } |
||
| 35 | // Add a class if there is a custom header. |
||
| 36 | if ( has_header_image() ) { |
||
| 37 | $classes[] = 'has-header-image'; |
||
| 38 | } |
||
| 39 | // Add class if the site title and tagline is hidden. |
||
| 40 | if ( 'blank' === get_header_textcolor() ) { |
||
| 41 | $classes[] = 'title-tagline-hidden'; |
||
| 42 | } |
||
| 43 | return $classes; |
||
| 44 | } |
||
| 45 | add_filter( 'body_class', 'strip_body_classes' ); |
||
| 46 |