-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Explore using the HTML API for link rel processing #4
base: trunk
Are you sure you want to change the base?
Conversation
src/wp-includes/formatting.php
Outdated
|
||
if ( $is_escaped ) { | ||
$link_html = preg_replace( '/[\'"]/', '\\\\$0', $link_html ); | ||
$all_parts = preg_split( '/\s/', "$rel $updated_rel", -1, PREG_SPLIT_NO_EMPTY ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it the same logic as with class names? I wonder how many HTML attributes are like that – perhaps there's space for a more generic "add_flag()" or so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had the same thought 😉
PRs like this one keep convincing me that developing Tag Processor was well worth it 💯 |
60973f7
to
d78f35e
Compare
No description provided.