Support » Plugin: Contact Form 7 » Warning: “continue” targeting switch is equivalent to “break”. Did you mean to u

  • Resolved johnzoet1

    (@johnzoet1)


    Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in D:\xampp\htdocs\wordpress-5.1\wordpress\wp-content\plugins\cf7-grid-layout\public\class-cf7-grid-layout-public.php on line 1099

    I am still testing on localhost before migrating to production.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter johnzoet1

    (@johnzoet1)

    These lines of code seem to fix the issue above.

    
    					//if(!isset($data[$tag['name']])) continue; /*likely toggled and unused*/
    					if(isset($data[$tag['name']])) {
    	          $result = apply_filters( "wpcf7_validate_{$type}", $result, $tag );
    	          break;
    					}
    
    					//if(empty($path)) continue;
    					if(empty($path)) {
    	          $idx++;
    	          if(!in_array($attachments,$path)) $attachments[] = $path;
    	          $path = explode('/',$path);
    	          $filename = $path[count($path)-1];
    	          $components['body'].= apply_filters('cf7sg_annotate_mail_attach_grid_files','', $name, null, null, $idx,$filename, $_POST['_wpcf7_key']);
    	          break;
    					}
    
    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Here is the support forum for the “Contact Form 7” plugin. Your question seems to be about a different plugin. I suggest posting this in their forum.

    Here is their support forum:

    https://wordpress.org/support/plugin/cf7-grid-layout/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: “continue” targeting switch is equivalent to “break”. Did you mean to u’ is closed to new replies.