improved image sizes for left/right/center alignment#1290
improved image sizes for left/right/center alignment#1290mukeshpanchal27 merged 6 commits intofeature/more-accurate-sizes-attributefrom
sizes for left/right/center alignment#1290Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
sizes for left/right alignmentsizes for left/right/center alignment
|
@joemcgill The commit 7cbb7ae addresses center alignment. |
|
|
||
| // Skips second time parsing if already processed. | ||
| if ( false === $processor->get_attribute( 'data-needs-sizes-update' ) ) { | ||
| if ( null === $processor->get_attribute( 'data-needs-sizes-update' ) ) { |
There was a problem hiding this comment.
Per WP_HTML_Tag_Processor::get_attribute documentation, It return null instead of false when element is not presented.
|
@joemcgill @westonruter The PR is ready for review. Joe, In 892b0dc, I used |
westonruter
left a comment
There was a problem hiding this comment.
LGTM, but with the tear_down not being necessary
Summary
Fixes #1289