Remove `<code>` tag from translatable string in `trackback_url()`.

Add translator commment.

Props ramiy.
Fixes #34573.

git-svn-id: https://develop.svn.wordpress.org/trunk@35546 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-11-05 23:38:41 +00:00
parent c98179fb82
commit b1ae50d4d0
1 changed files with 12 additions and 4 deletions

View File

@ -1091,12 +1091,20 @@ function get_trackback_url() {
* for the result instead.
*/
function trackback_url( $deprecated_echo = true ) {
if ( $deprecated_echo !== true )
_deprecated_argument( __FUNCTION__, '2.5', __('Use <code>get_trackback_url()</code> instead if you do not want the value echoed.') );
if ( $deprecated_echo )
if ( true !== $deprecated_echo ) {
_deprecated_argument( __FUNCTION__, '2.5',
/* translators: %s: get_trackback_url() */
sprintf( __( 'Use %s instead if you do not want the value echoed.' ),
'<code>get_trackback_url()</code>'
)
);
}
if ( $deprecated_echo ) {
echo get_trackback_url();
else
} else {
return get_trackback_url();
}
}
/**