Conditions | 4 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
50 | public static function get_post_custom_description( $post ) { |
||
51 | if ( empty( $post ) ) { |
||
52 | return ''; |
||
53 | } |
||
54 | |||
55 | $custom_description = get_post_meta( $post->ID, self::DESCRIPTION_META_KEY, true ); |
||
56 | |||
57 | if ( empty( $custom_description ) || ! Jetpack_SEO_Utils::is_enabled_jetpack_seo() ) { |
||
58 | return ''; |
||
59 | } |
||
60 | |||
61 | return $custom_description; |
||
62 | } |
||
63 | } |
||
64 |