mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Support timestamp permalinks. Make wider use of is_single(). Bug 0000194.
git-svn-id: https://develop.svn.wordpress.org/trunk@1491 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1248,7 +1248,8 @@ function generate_rewrite_rules($permalink_structure = '', $matches = '') {
|
||||
$feedquery = $feedindex . '?' . $query . '&feed=' . preg_index($num_toks + 1, $matches);
|
||||
|
||||
$post = 0;
|
||||
if (strstr($struct, '%postname%') || strstr($struct, '%post_id%')) {
|
||||
if (strstr($struct, '%postname%') || strstr($struct, '%post_id%')
|
||||
|| (strstr($struct, '%year%') && strstr($struct, '%monthnum%') && strstr($struct, '%day%') && strstr($struct, '%hour%') && strstr($struct, '%minute') && strstr($struct, '%second%'))) {
|
||||
$post = 1;
|
||||
$trackbackmatch = $match . $trackbackregex;
|
||||
$trackbackquery = $trackbackindex . '?' . $query . '&tb=1';
|
||||
|
||||
Reference in New Issue
Block a user