Allow underscores in post_name
git-svn-id: http://svn.automattic.com/wordpress/trunk@961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e0ad33fffe
commit
3762000999
|
@ -111,7 +111,7 @@ $rewritereplace = array(
|
|||
'([0-9]{4})?',
|
||||
'([0-9]{1,2})?',
|
||||
'([0-9]{1,2})?',
|
||||
'([0-9a-z-]+)?',
|
||||
'([0-9a-z-_]+)?',
|
||||
'([0-9]+)?'
|
||||
);
|
||||
$queryreplace = array (
|
||||
|
@ -166,11 +166,11 @@ $trackbackregex = 'trackback/?';
|
|||
$trackbackmatch .= $trackbackregex;
|
||||
|
||||
// Site feed
|
||||
$sitefeedmatch = 'feed/?([0-9a-z-]+)?/?$';
|
||||
$sitefeedmatch = 'feed/?([0-9a-z-_]+)?/?$';
|
||||
$sitefeedquery = $site_root . 'wp-feed.php?feed=$1';
|
||||
|
||||
// Site comment feed
|
||||
$sitecommentfeedmatch = 'comments/feed/?([0-9a-z-]+)?/?$';
|
||||
$sitecommentfeedmatch = 'comments/feed/?([0-9a-z-_]+)?/?$';
|
||||
$sitecommentfeedquery = $site_root . 'wp-feed.php?feed=$1&withcomments=1';
|
||||
|
||||
// Code for nice categories, currently not very flexible
|
||||
|
|
Loading…
Reference in New Issue