|
@@ 66-68 (lines=3) @@
|
| 63 |
|
*/ |
| 64 |
|
if ( $attr['width'] < VIDEOPRESS_MIN_WIDTH ) { |
| 65 |
|
$attr['width'] = 0; |
| 66 |
|
} elseif ( isset( $content_width ) && $content_width > VIDEOPRESS_MIN_WIDTH && $attr['width'] > $content_width ) { |
| 67 |
|
$attr['width'] = 0; |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
/** |
| 71 |
|
* If there was an invalid or unspecified width, set the width equal to the theme's `$content_width`. |
|
@@ 73-75 (lines=3) @@
|
| 70 |
|
/** |
| 71 |
|
* If there was an invalid or unspecified width, set the width equal to the theme's `$content_width`. |
| 72 |
|
*/ |
| 73 |
|
if ( $attr['width'] === 0 && isset( $content_width ) && $content_width > VIDEOPRESS_MIN_WIDTH ) { |
| 74 |
|
$attr['width'] = $content_width; |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
/** |
| 78 |
|
* If the width isn't an even number, reduce it by one (making it even). |