WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/03/2010 08:10:26 PM (11 years ago)
Author:
nacin
Message:

Handle page hierarchy when showing the sample permalink. props duck_, fixes #12327.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r14315 r14399  
    10371037    // Handle page hierarchy
    10381038    if ( $ptype->hierarchical ) {
    1039         $uri = get_page_uri($post->ID);
     1039        $uri = get_page_uri($post);
    10401040        $uri = untrailingslashit($uri);
    10411041        $uri = strrev( stristr( strrev( $uri ), '/' ) );
Note: See TracChangeset for help on using the changeset viewer.