Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #47244, comment 10


Ignore:
Timestamp:
05/16/2019 12:27:45 AM (7 years ago)
Author:
SergeyBiryukov

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #47244, comment 10

    initial v1  
    33The patch ensures that `rel` attribute is added with the correct quotes:
    44* if `target='_blank'` has single quotes, then `rel='noopener noreferrer'` has single quotes too.
    5 * If `target=_blank` does not have quotes (as in the example above), quotes of the `rel` attribute are checked as a fallback.
     5* If `target=_blank` does not have quotes (as in the example above), quotes of the `href` attribute are checked as a fallback.