[wp-cvs] wordpress/wp-includes functions-formatting.php,1.38,1.39

Ryan Boren rboren at users.sourceforge.net
Fri Aug 6 01:28:53 UTC 2004


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

Modified Files:
	functions-formatting.php 
Log Message:
In sanitize_title(), strip_tags() before sanitizing, not after.  In post.php, if post name is empty, pass the post title to the sanitizer.

Index: functions-formatting.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions-formatting.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** functions-formatting.php	27 Jul 2004 15:12:18 -0000	1.38
--- functions-formatting.php	6 Aug 2004 01:28:51 -0000	1.39
***************
*** 121,126 ****
  
  function sanitize_title($title, $fallback_title = '') {
-     $title = apply_filters('sanitize_title', $title);
      $title = strip_tags($title);
      if (empty($title)) {
          $title = $fallback_title;
--- 121,127 ----
  
  function sanitize_title($title, $fallback_title = '') {
      $title = strip_tags($title);
+     $title = apply_filters('sanitize_title', $title);
+ 
      if (empty($title)) {
          $title = $fallback_title;




More information about the cvs mailing list