Skip to content

Commit

Permalink
awesomemotive#1066 Force init on opengraph
Browse files Browse the repository at this point in the history
Calls init outside Wordpress initialization flow to prevent plugin menu
issues.
  • Loading branch information
amostajo committed Aug 12, 2017
1 parent 6e08f15 commit 90f4b0c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/aioseop_opengraph.php
Expand Up @@ -3,7 +3,7 @@
* The Opengraph class.
*
* @package All-in-One-SEO-Pack
* @version 2.4.14
* @version 2.3.16
*/
if ( ! class_exists( 'All_in_One_SEO_Pack_Opengraph' ) ) {
class All_in_One_SEO_Pack_Opengraph extends All_in_One_SEO_Pack_Module {
Expand All @@ -13,7 +13,8 @@ class All_in_One_SEO_Pack_Opengraph extends All_in_One_SEO_Pack_Module {
/**
* Module constructor.
*
* @since 2.4.14 Added display filter.
* @since 2.3.14 Added display filter.
* @since 2.3.16 #1066 Force init on constructor.
*/
function __construct() {
add_action( 'admin_enqueue_scripts', array( $this, 'og_admin_enqueue_scripts' ) );
Expand Down Expand Up @@ -196,6 +197,8 @@ function __construct() {
add_action( 'edited_term', array( &$this, 'save_tax_data' ), 10, 3 );
// Adds special filters
add_filter( 'aioseop_opengraph_placeholder', array( &$this, 'filter_placeholder' ) );
// Call to init to generate menus
$this->init();
}

/**
Expand Down

0 comments on commit 90f4b0c

Please sign in to comment.