[wp-cvs] wordpress/wp-includes functions.php,1.101.4.7,1.101.4.8

Matthew Mullenweg saxmatt at users.sourceforge.net
Wed Dec 15 19:41:52 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12021/wp-includes

Modified Files:
      Tag: WordPress-Ver-1_2-Branch
	functions.php 
Log Message:
Backport the encoding fixes and name cleanups.

Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.101.4.7
retrieving revision 1.101.4.8
diff -C2 -d -r1.101.4.7 -r1.101.4.8
*** functions.php	15 Dec 2004 19:01:52 -0000	1.101.4.7
--- functions.php	15 Dec 2004 19:41:50 -0000	1.101.4.8
***************
*** 1414,1416 ****
  }
  
! ?>
--- 1414,1428 ----
  }
  
! function wp_specialchars( $text, $quotes = 0 ) {
! 	// Like htmlspecialchars except don't double-encode HTML entities
! 	$text = preg_replace('/&([^#])(?![a-z12]{1,8};)/', '&$1', $text);-
! 	$text = str_replace('<', '&lt;', $text);
! 	$text = str_replace('>', '&gt;', $text);
! 	if ( $quotes ) {
! 		$text = str_replace('"', '&quot;', $text);
! 		$text = str_replace('"', '&#039;', $text);
! 	}
! 	return $text;
! }
! 
! ?>
\ No newline at end of file




More information about the cvs mailing list