Make WordPress Core


Ignore:
Timestamp:
12/30/2009 04:23:39 PM (15 years ago)
Author:
westi
Message:

Updates and improvements to _depreceated_argument. See #11386 props nacin.

File:
1 edited

Legend:

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

    r12550 r12584  
    247247 * @return string
    248248 */
    249 function get_the_excerpt($deprecated = '') {
     249function get_the_excerpt( $deprecated = '' ) {
    250250    if ( !empty( $deprecated ) )
    251         _deprecated_argument(__FUNCTION__, 'deprecated', '2.3');
     251        _deprecated_argument( __FUNCTION__, '2.3' );
    252252
    253253    global $post;
     
    902902 * @param bool $permalink Optional, default is false. Whether to include permalink.
    903903 */
    904 function the_attachment_link($id = 0, $fullsize = false, $deprecated = false, $permalink = false) {
     904function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) {
     905    if ( !empty( $deprecated ) )
     906        _deprecated_argument( __FUNCTION__, '0.0' );
     907
    905908    if ( $fullsize )
    906909        echo wp_get_attachment_link($id, 'full', $permalink);
Note: See TracChangeset for help on using the changeset viewer.