Skip to content

Commit

Permalink
Coding Standards: Add missing semicolon to endforeach keywords in m…
Browse files Browse the repository at this point in the history
…edia templates.

Follow-up to [27411], [27440].

Props vishitshah, mukesh27, nielslange, sabernhardt.
Fixes #46103.

git-svn-id: https://develop.svn.wordpress.org/trunk@51395 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Jul 10, 2021
1 parent 2999960 commit f81cd31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wp-includes/media-template.php
Expand Up @@ -28,7 +28,7 @@ class="wp-audio-shortcode"
if ( ! _.isUndefined( data.model.<?php echo $attr; ?> ) && data.model.<?php echo $attr; ?> ) {
#> <?php echo $attr; ?><#
}
<?php endforeach ?>#>
<?php endforeach; ?>#>
>
<# if ( ! _.isEmpty( data.model.src ) ) { #>
<source src="{{ data.model.src }}" type="{{ wp.media.view.settings.embedMimes[ data.model.src.split('.').pop() ] }}" />
Expand Down Expand Up @@ -123,7 +123,7 @@ class="wp-video-shortcode {{ classes.join( ' ' ) }}"
if ( ! _.isUndefined( data.model.<?php echo $attr; ?> ) && data.model.<?php echo $attr; ?> ) {
#> <?php echo $attr; ?><#
}
<?php endforeach ?>#>
<?php endforeach; ?>#>
>
<# if ( ! _.isEmpty( data.model.src ) ) {
if ( isYouTube ) { #>
Expand Down Expand Up @@ -1277,7 +1277,7 @@ function wp_print_media_templates() {
<button type="button" class="button-link remove-setting"><?php _e( 'Remove audio source' ); ?></button>
</span>
<# } #>
<?php endforeach ?>
<?php endforeach; ?>

<# if ( ! _.isEmpty( html5types ) ) { #>
<fieldset class="setting-group">
Expand Down Expand Up @@ -1367,7 +1367,7 @@ function wp_print_media_templates() {
<button type="button" class="button-link remove-setting"><?php _e( 'Remove video source' ); ?></button>
</span>
<# } #>
<?php endforeach ?>
<?php endforeach; ?>
</div>

<# if ( ! _.isEmpty( html5types ) ) { #>
Expand Down

0 comments on commit f81cd31

Please sign in to comment.