Skip to content

Commit

Permalink
Adding new hooks
Browse files Browse the repository at this point in the history
Declaring Cloner as a global variable
  • Loading branch information
igmoweb committed Sep 16, 2014
1 parent 090f1a0 commit 08a4bb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions admin/cloner-admin-clone-site.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ public function display_admin_page() {
if ( ! empty( $additional_tables ) && $blog_id == 1 )
add_meta_box( 'cloner-advanced', __( 'Advanced Options', WPMUDEV_CLONER_LANG_DOMAIN), array( $this, 'advanced_options_meta_box' ), 'cloner', 'normal' );

do_action( 'wpmudev_cloner_clone_site_screen' );
include_once( 'views/clone-site.php' );
}

Expand Down
3 changes: 2 additions & 1 deletion cloner.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,6 @@ public function maybe_upgrade() {

}

$nbt_cloner = new WPMUDEV_Cloner();
global $wpmudev_cloner;
$wpmudev_cloner = new WPMUDEV_Cloner();

0 comments on commit 08a4bb6

Please sign in to comment.