Forum Replies Created

Viewing 1 replies (of 1 total)
  • You need to fix this plugin until official patch/version comes out.

    1) In file /includes/pipe.php add this below function collect_befores

    function collect_afters() {
    		$afters = array();
    
    		foreach ( $this->pipes as $pipe ) {
    			$afters[] = $pipe->after;
    		}
    
    		return $afters;
    	}

    2) in file /includes/shortcodes.php around line 122 replace whole block to look like this

    if ( WPCF7_USE_PIPE ) {
        $pipes = new WPCF7_Pipes( $scanned_tag['raw_values'] );
        $scanned_tag['values'] = $pipes->collect_befores();
        $scanned_tag['pipes'] = $pipes;
        $scanned_tag['labels'] = $pipes->collect_afters();
    } else {
        $scanned_tag['values'] = $scanned_tag['raw_values'];
        $scanned_tag['labels'] = $scanned_tag['values']; // <-- this was below if block, delete it there
    }
Viewing 1 replies (of 1 total)