Make WordPress Core


Ignore:
Timestamp:
08/20/2015 06:24:00 AM (9 years ago)
Author:
wonderboymusic
Message:

Deprecate post_permalink() (Introduced in 1.0, already had a deprecated argument in 1.3), which just wraps get_permalink() and was only used by XML-RPC in 4 places.

Props solarissmoke.
Fixes #16982.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r33612 r33659  
    761761            'post_parent'       => strval( $post['post_parent'] ),
    762762            'post_mime_type'    => $post['post_mime_type'],
    763             'link'              => post_permalink( $post['ID'] ),
     763            'link'              => get_permalink( $post['ID'] ),
    764764            'guid'              => $post['guid'],
    765765            'menu_order'        => intval( $post['menu_order'] ),
     
    931931        // Get all of the page content and link.
    932932        $full_page = get_extended( $page->post_content );
    933         $link = post_permalink( $page->ID );
     933        $link = get_permalink( $page->ID );
    934934
    935935        // Get info the page parent if there is one.
     
    53845384
    53855385            $post = get_extended($postdata['post_content']);
    5386             $link = post_permalink($postdata['ID']);
     5386            $link = get_permalink($postdata['ID']);
    53875387
    53885388            // Get the author info.
     
    55245524
    55255525            $post = get_extended($entry['post_content']);
    5526             $link = post_permalink($entry['ID']);
     5526            $link = get_permalink($entry['ID']);
    55275527
    55285528            // Get the post author info.
Note: See TracChangeset for help on using the changeset viewer.