[wp-cvs] wordpress/wp-includes functions.php,1.201,1.202
Ryan Boren
rboren at users.sourceforge.net
Tue Nov 2 01:56:31 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14712/wp-includes
Modified Files:
functions.php
Log Message:
urldecode page URI so that it will work for multibyte languages.
Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.201
retrieving revision 1.202
diff -C2 -d -r1.201 -r1.202
*** functions.php 1 Nov 2004 13:21:14 -0000 1.201
--- functions.php 2 Nov 2004 01:56:29 -0000 1.202
***************
*** 1347,1355 ****
$page = $wpdb->get_row("SELECT post_name, post_parent FROM $wpdb->posts WHERE ID = '$page'");
! $uri = $page->post_name;
while ($page->post_parent != 0) {
$page = $wpdb->get_row("SELECT post_name, post_parent FROM $wpdb->posts WHERE ID = '$page->post_parent'");
! $uri = $page->post_name . "/" . $uri;
}
--- 1347,1355 ----
$page = $wpdb->get_row("SELECT post_name, post_parent FROM $wpdb->posts WHERE ID = '$page'");
! $uri = urldecode($page->post_name);
while ($page->post_parent != 0) {
$page = $wpdb->get_row("SELECT post_name, post_parent FROM $wpdb->posts WHERE ID = '$page->post_parent'");
! $uri = urldecode($page->post_name) . "/" . $uri;
}
***************
*** 1364,1368 ****
{
foreach ($uris as $uri => $pagename) {
! $rewrite_rules += array($uri . '/?$' => "index.php?pagename=$pagename");
}
}
--- 1364,1368 ----
{
foreach ($uris as $uri => $pagename) {
! $rewrite_rules += array($uri . '/?$' => "index.php?pagename=" . urldecode($pagename));
}
}
More information about the cvs
mailing list