diff --git a/includes/sanitizers/class-amp-tag-and-attribute-sanitizer.php b/includes/sanitizers/class-amp-tag-and-attribute-sanitizer.php index b52e94c073e..5025a11165d 100644 --- a/includes/sanitizers/class-amp-tag-and-attribute-sanitizer.php +++ b/includes/sanitizers/class-amp-tag-and-attribute-sanitizer.php @@ -475,7 +475,7 @@ private function process_node( DOMElement $node ) { if ( empty( $rule_spec_list_to_validate ) ) { if ( 1 === count( $validation_errors ) ) { // If there was only one tag spec candidate that failed, use its error code for removing the node, - // since it's we know it is the specific reason for why the node had to be removed. + // since we know it is the specific reason for why the node had to be removed. // This is the normal case. $this->remove_invalid_child( $node, @@ -886,7 +886,7 @@ private function validate_tag_spec_for_node( DOMElement $node, $tag_spec ) { * @param DOMElement $node Node. * @param array[] $attr_spec_list Attribute Spec list. * - * @return int Score for how well the attribute spec list patched. + * @return int Score for how well the attribute spec list matched. */ private function validate_attr_spec_list_for_node( DOMElement $node, $attr_spec_list ) { /*