[wp-hackers] mosquito-bug: 681
Adi Jörg Sieker
ml at adsworth.info
Sat Jan 29 15:21:18 GMT 2005
Hi,
the attached patch makes wp_list_pages use the same sort order
(menu_order) as manage/pages in the admin area as requested in
http://mosquito.wordpress.org/view.php?id=681
Regards
Adi
-------------- next part --------------
Index: template-functions-post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/template-functions-post.php,v
retrieving revision 1.42
diff -U3 -r1.42 template-functions-post.php
--- template-functions-post.php 17 Jan 2005 20:16:22 -0000 1.42
+++ template-functions-post.php 29 Jan 2005 15:14:55 -0000
@@ -271,7 +271,7 @@
parse_str($args, $r);
if (!isset($r['child_of'])) $r['child_of'] = 0;
- if (!isset($r['sort_column'])) $r['sort_column'] = 'post_title';
+ if (!isset($r['sort_column'])) $r['sort_column'] = 'menu_order';
if (!isset($r['sort_order'])) $r['sort_order'] = 'ASC';
$exclusions = '';
More information about the hackers
mailing list