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

Add translator commment.

Props ramiy.
Fixes #34573.
Built from https://develop.svn.wordpress.org/trunk@35546


git-svn-id: http://core.svn.wordpress.org/trunk@35510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-11-05 23:39:25 +00:00
parent 09b9fae4db
commit b5b3b0b913
2 changed files with 13 additions and 5 deletions

View File

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

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-beta3-35545'; $wp_version = '4.4-beta3-35546';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.