add support to the new clean_pre behavior (wp2.7 accepts arrays...)
This commit is contained in:
		
							parent
							
								
									2877a9bffe
								
							
						
					
					
						commit
						c889e33be9
					
				@ -61,7 +61,12 @@
 | 
			
		||||
	
 | 
			
		||||
	
 | 
			
		||||
	
 | 
			
		||||
	function clean_pre($text) {
 | 
			
		||||
	function clean_pre($matches) {
 | 
			
		||||
		if ( is_array($matches) )
 | 
			
		||||
			$text = $matches[1] . $matches[2] . "</pre>";
 | 
			
		||||
		else
 | 
			
		||||
			$text = $matches;
 | 
			
		||||
 | 
			
		||||
		/* NWM: a bit hackish? where are the slashes for double quotes added? */
 | 
			
		||||
		$text = str_replace('\"', '"', $text);  
 | 
			
		||||
		$text = str_replace('<br />', '', $text);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user