We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 560b20c commit d3f50d5Copy full SHA for d3f50d5
php/class-media.php
@@ -1718,7 +1718,7 @@ public function get_breakpoint_options( $attachment_id ) {
1718
$breakpoints = array();
1719
$settings = $this->settings->get_setting( self::MEDIA_SETTINGS_SLUG )->get_value();
1720
1721
- if ( $settings['enable_breakpoints'] && wp_attachment_is_image( $attachment_id ) ) {
+ if ( ! empty( $settings['enable_breakpoints'] ) && wp_attachment_is_image( $attachment_id ) ) {
1722
$meta = wp_get_attachment_metadata( $attachment_id );
1723
// Get meta image size if non exists.
1724
if ( empty( $meta ) ) {
0 commit comments