Skip to content

Commit

Permalink
Removed unnecessary conditional permissions check #845
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin Walker committed Aug 10, 2016
1 parent bb43fd2 commit d4a60c0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions includes/admin/shortcodes/abstract-shortcode-generator.php
Expand Up @@ -75,10 +75,6 @@ public function __construct( $shortcode ) {
*/
public function init() {

if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) {
return;
}

if ( $this->shortcode_tag ) {

$this->self = get_class( $this );
Expand Down

0 comments on commit d4a60c0

Please sign in to comment.