-
Notifications
You must be signed in to change notification settings - Fork 384
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
Use posts member of WP_Query instead of get_posts method #7782
Conversation
Plugin builds for 3e75a33 are ready 🛎️!
Checksums
Warning These builds are for testing purposes only and should not be used in production. |
bb7e4fd
to
9961198
Compare
if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '18.7', '>=' ) ) { | ||
$this->assertStringContainsString( '.wp-block-audio :where(figcaption)', $amphtml_source, 'Expected block-library/style.css' ); | ||
} else { | ||
$this->assertStringContainsString( '.wp-block-audio figcaption', $amphtml_source, 'Expected block-library/style.css' ); | ||
} |
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.
if ( version_compare( strtok( get_bloginfo( 'version' ), '-' ), '6.6', '>=' ) ) { | ||
$this->assertStringContainsString( '[class^="wp-block-"]:not(.wp-block-gallery) > figcaption', $amphtml_source, 'Expected twentyten/blocks.css' ); | ||
} else { | ||
$this->assertStringContainsString( '[class^="wp-block-"]:not(.wp-block-gallery) figcaption', $amphtml_source, 'Expected twentyten/blocks.css' ); | ||
} |
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.
Using |
@westonruter We are good to merge this. Can you please take a look at the test files I have changed? |
Summary
Fixes #7781
This is just a simple search-and-replace. Changes are not tested.
Checklist