Skip to content

Commit

Permalink
Move add_shortcode to boot step
Browse files Browse the repository at this point in the history
This is required to make the tests pass.
  • Loading branch information
mAAdhaTTah committed Jun 7, 2016
1 parent 477a1a9 commit 352565e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion helpers.php
Expand Up @@ -116,4 +116,3 @@ function write_wpghs_link( $atts ) {
return $output;

}
add_shortcode( 'wpghs', 'write_wpghs_link' );
2 changes: 2 additions & 0 deletions wp-github-sync.php
Expand Up @@ -164,6 +164,8 @@ public function boot() {
add_action( 'wpghs_export', array( $this->controller, 'export_all' ) );
add_action( 'wpghs_import', array( $this->controller, 'import_master' ) );

add_shortcode( 'wpghs', 'write_wpghs_link' );

do_action( 'wpghs_boot', $this );
}

Expand Down

0 comments on commit 352565e

Please sign in to comment.