Skip to content

Commit

Permalink
The variable is no longer set for PT loads, which killed most plugin …
Browse files Browse the repository at this point in the history
…functionality. Moving up to generic admin_init.
  • Loading branch information
kraftbj committed Jul 24, 2015
1 parent cf33421 commit 6da399c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions press-this-extended.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ function __construct() {
add_action( 'load-options-writing.php', array( $this, 'help_tab' ) );
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this, 'action_links' ) );

if ( 'press-this.php' == $pagenow ) { // Only needed when Press This is loaded.
add_action( 'admin_init', array( $this, 'execute' ) );
}

if ( 'admin-ajax.php' == $pagenow ) { // These hooks are the only one used exclusively within the ajax context.
add_action( 'admin_init', array( $this, 'execute_ajax' ) );
}
Expand Down

0 comments on commit 6da399c

Please sign in to comment.