@@ 12-14 (lines=3) @@ | ||
9 | */ |
|
10 | function wpcom_better_footer_links_buffer( $page ) { |
|
11 | // Only add theme and colophon links for pub and premium themes, and VIP "partner" themes. |
|
12 | if ( ! wpcom_is_pub_theme() && ! wpcom_is_premium_theme() && ! wpcom_is_vip_theme() && ! wpcom_is_a8c_theme() ) { |
|
13 | return $page; |
|
14 | } |
|
15 | ||
16 | // Would like to only see footer content before wp_footer output. |
|
17 | $output = preg_split( '/wpcom_wp_footer/i', $page, 2 ); |
|
@@ 52-54 (lines=3) @@ | ||
49 | */ |
|
50 | function wpcom_better_footer_links( $footer ) { |
|
51 | // Only add theme and colophon links for pub and premium themes, and VIP "partner" themes. |
|
52 | if ( ! wpcom_is_pub_theme() && ! wpcom_is_premium_theme() && ! wpcom_is_vip_theme() && ! wpcom_is_a8c_theme() ) { |
|
53 | return $footer; |
|
54 | } |
|
55 | ||
56 | // Get current theme data. |
|
57 | $theme = wp_get_theme(); |