comments_link( string $deprecated = '', string $deprecated_2 = '' )
Display the link to the current post comments.
Parameters
- $deprecated
-
(Optional) Not Used.
Default value: ''
- $deprecated_2
-
(Optional) Not Used.
Default value: ''
Source
File: wp-includes/comment-template.php
function comments_link( $deprecated = '', $deprecated_2 = '' ) {
if ( !empty( $deprecated ) )
_deprecated_argument( __FUNCTION__, 'WP-0.72' );
if ( !empty( $deprecated_2 ) )
_deprecated_argument( __FUNCTION__, 'WP-1.3.0' );
echo esc_url( get_comments_link() );
}
Changelog
Version | Description |
---|---|
WP-0.71 | Introduced. |