| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 44 | function supports_alnp() { |
||
| 45 | /* WordPress core themes. */ |
||
| 46 | $core_themes = array( |
||
| 47 | 'twentyfifteen', 'twentyfourteen', 'twentythirteen', 'twentytwelve', 'twentyten' |
||
| 48 | ); |
||
| 49 | |||
| 50 | if (in_array(get_option('template'), $core_themes)) { |
||
| 51 | return true; |
||
| 52 | } else if (current_theme_supports('auto-load-next-post')) { |
||
| 53 | return true; |
||
| 54 | } |
||
| 55 | |||
| 56 | return false; |
||
| 57 | } // END supports_alnp() |
||
| 58 | } |
||
| 59 |