Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | public static function getTimberPostById($postId, $moreLinkText = null, $stripteaser = false) { |
||
9 | global $post; |
||
10 | $post = get_post($postId); |
||
11 | setup_postdata($post, $moreLinkText, $stripteaser); |
||
12 | $timberPost = new Post($post); |
||
13 | wp_reset_postdata($post); |
||
14 | return $timberPost; |
||
15 | } |
||
16 | |||
34 |