WordPress.org

Make WordPress Core

Ticket #16982: 16982.2.diff

File 16982.2.diff, 1.3 KB (added by solarissmoke, 3 years ago)

sans deprecated argument

  • wp-includes/link-template.php

     
    208208} 
    209209 
    210210/** 
    211  * Retrieve permalink from post ID. 
    212  * 
    213  * @since 1.0.0 
    214  * 
    215  * @param int $post_id Optional. Post ID. 
    216  * @param mixed $deprecated Not used. 
    217  * @return string 
    218  */ 
    219 function post_permalink( $post_id = 0, $deprecated = '' ) { 
    220         if ( !empty( $deprecated ) ) 
    221                 _deprecated_argument( __FUNCTION__, '1.3' ); 
    222  
    223         return get_permalink($post_id); 
    224 } 
    225  
    226 /** 
    227211 * Retrieve the permalink for current page or page ID. 
    228212 * 
    229213 * Respects page_on_front. Use this one. 
  • wp-includes/deprecated.php

     
    26022602        return true; 
    26032603} 
    26042604 
     2605 
     2606/** 
     2607 * Retrieve permalink from post ID. 
     2608 * 
     2609 * @since 1.0.0 
     2610 * @deprecated 3.2 
     2611 * @deprecated Use get_permalink() 
     2612 * 
     2613 * @param int $post_id Optional. Post ID. 
     2614 * @return string 
     2615 */ 
     2616function post_permalink( $post_id = 0 ) { 
     2617        _deprecated_function( __FUNCTION__, '3.2', 'get_permalink()' ); 
     2618        return get_permalink($post_id); 
     2619} 
     2620 No newline at end of file