|
@@ 100-102 (lines=3) @@
|
| 97 |
|
*/ |
| 98 |
|
if ( $attr['width'] < VIDEOPRESS_MIN_WIDTH ) { |
| 99 |
|
$attr['width'] = 0; |
| 100 |
|
} elseif ( isset( $content_width ) && $content_width > VIDEOPRESS_MIN_WIDTH && $attr['width'] > $content_width ) { |
| 101 |
|
$attr['width'] = 0; |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
/** |
| 105 |
|
* If there was an invalid or unspecified width, set the width equal to the theme's `$content_width`. |
|
@@ 107-109 (lines=3) @@
|
| 104 |
|
/** |
| 105 |
|
* If there was an invalid or unspecified width, set the width equal to the theme's `$content_width`. |
| 106 |
|
*/ |
| 107 |
|
if ( 0 === $attr['width'] && isset( $content_width ) && $content_width >= VIDEOPRESS_MIN_WIDTH ) { |
| 108 |
|
$attr['width'] = $content_width; |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
/** |
| 112 |
|
* If the width isn't an even number, reduce it by one (making it even). |