Changeset 4990 for trunk/wp-includes/link-template.php
- Timestamp:
- 03/07/2007 05:29:15 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/link-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r4983 r4990 71 71 72 72 $category = ''; 73 if ( strstr($permalink, '%category%')) {73 if (strpos($permalink, '%category%') !== false) { 74 74 $cats = get_the_category($post->ID); 75 75 $category = $cats[0]->category_nicename; … … 159 159 else 160 160 $parentlink = get_permalink( $object->post_parent ); 161 if ( ! strstr($parentlink, '?'))161 if (strpos($parentlink, '?') === false) 162 162 $link = trim($parentlink, '/') . '/' . $object->post_name . '/'; 163 163 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)