Skip to content

Commit

Permalink
Fix use continue
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielFloeter committed Feb 5, 2018
1 parent d5bae87 commit 7258782
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cat-posts.php
Expand Up @@ -1976,8 +1976,7 @@ function register_widget() {
*
* @since 4.7
*/
function change_cropped_image_dimensions() {
?>
function change_cropped_image_dimensions($number,$widgetsettings) { ?>
<script type="text/javascript">

if (typeof jQuery !== 'undefined') {
Expand Down Expand Up @@ -2053,7 +2052,7 @@ function change_cropped_image_dimensions() {
$widgets_ids = apply_filters( 'cpw_crop_widgets', array() );
foreach ( $widgets_ids as $num => $ratio ) {
if($num != $number) {
break;
continue;
} ?>
cwp_namespace.fluid_images.widget = jQuery('#<?php echo esc_attr( $num ); ?>');
cwp_namespace.fluid_images.Widgets['<?php echo esc_attr( $num ); ?>'] = new cwp_namespace.fluid_images.WidgetPosts(cwp_namespace.fluid_images.widget,<?php echo esc_attr( $ratio ); ?>);
Expand All @@ -2068,7 +2067,7 @@ function change_cropped_image_dimensions() {
});
}
</script>
<?php
<?php
}

/*
Expand Down

0 comments on commit 7258782

Please sign in to comment.