WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/16/2010 04:34:30 PM (10 years ago)
Author:
ryan
Message:

Use get_permalink() instead of get_post_permalink(). Limit to published post types. see #11817 #12566

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/nav-menu.php

    r13704 r13714  
    211211
    212212            $menu_item->title = $menu_item->post_title;
    213             $menu_item->url = get_post_permalink( $menu_item->ID );
     213            $menu_item->url = get_permalink( $menu_item->ID );
    214214            $menu_item->target = '_none';
    215215           
Note: See TracChangeset for help on using the changeset viewer.