Validation error on thumbnail shortcode
-
Hi, I catched one coding error in generate-thumbnail-code.php at line 121 & 123:
$youtube_code .= '<img src="https://img.youtube.com/vi/' . $id . '/' . $version . '.jpg"'; if ( $width != '' ) { $youtube_code .= ' width="' . $width . 'px"'; } if ( $height != '' ) { $youtube_code .= ' height="' . $height . 'px"'; } $youtube_code .= ' alt="' . $alt . '"/>'; if ( !$nolink ) { $youtube_code .= '</a>'; }
It need to remove the “px” on both lines for don’t trigger an HTML5 validation error
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Validation error on thumbnail shortcode’ is closed to new replies.