diff --git wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wordcamp-coming-soon-page.php wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wordcamp-coming-soon-page.php
index 6ccb5b4..da3385c 100644
|
|
class WordCamp_Coming_Soon_Page { |
12 | 12 | add_action( 'wp_enqueue_scripts', array( $this, 'manage_plugin_theme_stylesheets' ), 99 ); // (hopefully) after all plugins/themes have enqueued their styles |
13 | 13 | add_action( 'wp_head', array( $this, 'render_dynamic_styles' ) ); |
14 | 14 | add_filter( 'template_include', array( $this, 'override_theme_template' ) ); |
| 15 | add_action( 'wp_loaded', array( $this, 'disable_jetpacks_open_graph' ) ); |
15 | 16 | |
16 | 17 | add_image_size( 'wccsp_image_medium_rectangle', 500, 300 ); |
17 | 18 | } |
… |
… |
class WordCamp_Coming_Soon_Page { |
105 | 106 | } |
106 | 107 | |
107 | 108 | /** |
| 109 | * Disable Jetpack's Open Graph meta tags when the Coming Soon page is active |
| 110 | */ |
| 111 | public function disable_jetpacks_open_graph() { |
| 112 | if ( $this->override_theme_template ) { |
| 113 | add_filter( 'jetpack_enable_open_graph', '__return_false' ); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | /** |
108 | 118 | * Collect all of the variables the Coming Soon template will need |
109 | 119 | * Doing this here keeps the template less cluttered and more of a pure view |
110 | 120 | * |