Skip to content

Commit

Permalink
Removing duplicate check
Browse files Browse the repository at this point in the history
This should be done inside the function in case someone to call the
method directly.

The check is also already done for add_options_page.

Related to ActiveCampaign#12
  • Loading branch information
guillaumemolter committed Aug 6, 2016
1 parent cf10b7f commit 7c3dc8b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions postmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ function __construct() {


function init() {
if ( ! current_user_can( 'manage_options' ) ) {
return;
}

add_action( 'admin_menu', array( $this, 'admin_menu' ) );
add_action( 'wp_ajax_postmark_save', array( $this, 'save_settings' ) );
add_action( 'wp_ajax_postmark_test', array( $this, 'send_test_email' ) );
Expand Down

0 comments on commit 7c3dc8b

Please sign in to comment.