I18N: Move translatable Codex URLs to separate strings in `wp-includes/functions.php`.
Props ramiy. See #34687. Built from https://develop.svn.wordpress.org/trunk@35667 git-svn-id: http://core.svn.wordpress.org/trunk@35631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0d4cf36199
commit
d9faafbd44
|
@ -3780,11 +3780,16 @@ function _doing_it_wrong( $function, $message, $version ) {
|
||||||
if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true ) ) {
|
if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true ) ) {
|
||||||
if ( function_exists( '__' ) ) {
|
if ( function_exists( '__' ) ) {
|
||||||
$version = is_null( $version ) ? '' : sprintf( __( '(This message was added in version %s.)' ), $version );
|
$version = is_null( $version ) ? '' : sprintf( __( '(This message was added in version %s.)' ), $version );
|
||||||
$message .= ' ' . __( 'Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information.' );
|
/* translators: %s: Codex URL */
|
||||||
|
$message .= ' ' . sprintf( __( 'Please see <a href="%s">Debugging in WordPress</a> for more information.' ),
|
||||||
|
__( 'https://codex.wordpress.org/Debugging_in_WordPress' )
|
||||||
|
);
|
||||||
trigger_error( sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s' ), $function, $message, $version ) );
|
trigger_error( sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s' ), $function, $message, $version ) );
|
||||||
} else {
|
} else {
|
||||||
$version = is_null( $version ) ? '' : sprintf( '(This message was added in version %s.)', $version );
|
$version = is_null( $version ) ? '' : sprintf( '(This message was added in version %s.)', $version );
|
||||||
$message .= ' Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information.';
|
$message .= sprintf( ' Please see <a href="%s">Debugging in WordPress</a> for more information.',
|
||||||
|
'https://codex.wordpress.org/Debugging_in_WordPress'
|
||||||
|
);
|
||||||
trigger_error( sprintf( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s', $function, $message, $version ) );
|
trigger_error( sprintf( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s', $function, $message, $version ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-beta4-35666';
|
$wp_version = '4.4-beta4-35667';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
|
Loading…
Reference in New Issue