Changeset 14147 for trunk/wp-admin/includes/post.php
- Timestamp:
- 04/18/2010 09:18:20 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r14130 r14147 1031 1031 $permalink = get_permalink($post, true); 1032 1032 1033 if ( $ptype->query_var )// Replace custom post_type Token with generic pagename token for ease of use.1034 $permalink = str_replace('%' . $ptype->query_var . '%', '%pagename%', $permalink);1033 // Replace custom post_type Token with generic pagename token for ease of use. 1034 $permalink = str_replace("%$post->post_type%", '%pagename%', $permalink); 1035 1035 1036 1036 // Handle page hierarchy
Note: See TracChangeset
for help on using the changeset viewer.