Skip to content

Commit

Permalink
#2842 Added in master
Browse files Browse the repository at this point in the history
  • Loading branch information
MARQAS committed Jan 29, 2019
1 parent bb9483d commit bbe5586
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AMP_Blacklist_Sanitizer extends AMP_Base_Sanitizer {
public function sanitize() {
$blacklisted_tags = $this->get_blacklisted_tags();
// Blacklisted tags for non-content #2835
if ( true === $this->args['non-content'] ) {
if ( isset($this->args['non-content']) && true === $this->args['non-content'] ) {
$blacklisted_tags = ampforwp_sidebar_blacklist_tags($blacklisted_tags);
}
$blacklisted_attributes = $this->get_blacklisted_attributes();
Expand Down

0 comments on commit bbe5586

Please sign in to comment.