Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 18 |
Ratio | 100 % |
1 | <?php |
||
15 | public function __construct() { |
||
16 | $options = array(); |
||
17 | |||
18 | $author = get_queried_object(); |
||
19 | |||
20 | if ( is_a( $author, 'WP_User' ) ) { |
||
21 | $options[] = 'single/author' . $author->user_nicename; |
||
22 | $options[] = 'author-' . $author->user_nicename; |
||
23 | |||
24 | $options[] = 'single/author' . $author->ID; |
||
25 | $options[] = 'author-' . $author->ID; |
||
26 | } |
||
27 | |||
28 | $options[] = 'archive/author'; |
||
29 | $options[] = 'author'; |
||
30 | |||
31 | $this->set_options( $options ); |
||
32 | } |
||
33 | } |
||
34 |