[wp-testers] Re: Invalid XHTML Code from wp_list_cats

Mike Little mike at zed1.com
Wed Apr 19 22:52:01 GMT 2006


On 4/19/06, Ajay D'Souza <ajaydsouza at gmail.com> wrote:
> How do I apply the  diff file?
>

In this case, Ajay, the patch is so simple that you can make the change by hand.

Diff
Modified: trunk/wp-includes/classes.php (3714 => 3715)
--- trunk/wp-includes/classes.php	2006-04-19 02:32:12 UTC (rev 3714)
+++ trunk/wp-includes/classes.php	2006-04-19 02:33:47 UTC (rev 3715)
@@ -644,7 +644,7 @@
 		return $output;
 	}
 	
-	function end_el($output, $page, $depth) {
+	function end_el($output, $page, $depth, $args) {
  		if ( 'list' != $args['style'] )
 			return $output;
 	

Load the file classes.php go to line 644 and make the change above.
Which is to say, add $args to the function definition.

Mike
--
Mike Little
http://zed1.com/


More information about the wp-testers mailing list