Changeset 14399
- Timestamp:
- 05/03/2010 08:10:26 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-admin/includes/post.php (modified) (1 diff)
-
wp-includes/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r14315 r14399 1037 1037 // Handle page hierarchy 1038 1038 if ( $ptype->hierarchical ) { 1039 $uri = get_page_uri($post ->ID);1039 $uri = get_page_uri($post); 1040 1040 $uri = untrailingslashit($uri); 1041 1041 $uri = strrev( stristr( strrev( $uri ), '/' ) ); -
trunk/wp-includes/post.php
r14310 r14399 2909 2909 * @since 1.5.0 2910 2910 * 2911 * @param int $page_id Page ID.2911 * @param mixed $page Page object or page ID. 2912 2912 * @return string Page URI. 2913 2913 */ 2914 function get_page_uri($page_id) { 2915 $page = get_page($page_id); 2914 function get_page_uri($page) { 2915 if ( ! is_object($page) ) 2916 $page = get_page($page); 2916 2917 $uri = $page->post_name; 2917 2918
Note: See TracChangeset
for help on using the changeset viewer.