Changeset 13688
- Timestamp:
- 03/13/2010 06:59:07 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/rewrite.php
r13678 r13688 1438 1438 if (strpos($struct, '%pagename%') !== false) 1439 1439 $page = true; 1440 } 1441 1442 if ( ! $post ) { 1443 // For custom post types, we need to add on endpoints as well. 1444 foreach ( get_post_types( array('_builtin' => false ) ) as $ptype ) { 1445 if ( strpos($struct, "%$ptype%") !== false ) { 1446 $post = true; 1447 $page = false; 1448 } 1449 } 1440 1450 } 1441 1451
Note: See TracChangeset
for help on using the changeset viewer.