I18N: Replace unnecessary context with translator comments in `wp_post_revision_title()` and `wp_post_revision_title_expanded()`.
Props ramiy. Fixes #37778. Built from https://develop.svn.wordpress.org/trunk@38324 git-svn-id: http://core.svn.wordpress.org/trunk@38265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fee26cf741
commit
372a19a435
|
@ -1639,10 +1639,10 @@ function wp_post_revision_title( $revision, $link = true ) {
|
||||||
|
|
||||||
/* translators: revision date format, see https://secure.php.net/date */
|
/* translators: revision date format, see https://secure.php.net/date */
|
||||||
$datef = _x( 'F j, Y @ H:i:s', 'revision date format' );
|
$datef = _x( 'F j, Y @ H:i:s', 'revision date format' );
|
||||||
/* translators: 1: date */
|
/* translators: %s: revision date */
|
||||||
$autosavef = _x( '%1$s [Autosave]', 'post revision title extra' );
|
$autosavef = __( '%s [Autosave]' );
|
||||||
/* translators: 1: date */
|
/* translators: %s: revision date */
|
||||||
$currentf = _x( '%1$s [Current Revision]', 'post revision title extra' );
|
$currentf = __( '%s [Current Revision]' );
|
||||||
|
|
||||||
$date = date_i18n( $datef, strtotime( $revision->post_modified ) );
|
$date = date_i18n( $datef, strtotime( $revision->post_modified ) );
|
||||||
if ( $link && current_user_can( 'edit_post', $revision->ID ) && $link = get_edit_post_link( $revision->ID ) )
|
if ( $link && current_user_can( 'edit_post', $revision->ID ) && $link = get_edit_post_link( $revision->ID ) )
|
||||||
|
@ -1691,8 +1691,10 @@ function wp_post_revision_title_expanded( $revision, $link = true ) {
|
||||||
$date
|
$date
|
||||||
);
|
);
|
||||||
|
|
||||||
$autosavef = __( '%1$s [Autosave]' );
|
/* translators: %s: revision date with author's Gravatar */
|
||||||
$currentf = __( '%1$s [Current Revision]' );
|
$autosavef = __( '%s [Autosave]' );
|
||||||
|
/* translators: %s: revision date with author's Gravatar */
|
||||||
|
$currentf = __( '%s [Current Revision]' );
|
||||||
|
|
||||||
if ( !wp_is_post_revision( $revision ) )
|
if ( !wp_is_post_revision( $revision ) )
|
||||||
$revision_date_author = sprintf( $currentf, $revision_date_author );
|
$revision_date_author = sprintf( $currentf, $revision_date_author );
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7-alpha-38323';
|
$wp_version = '4.7-alpha-38324';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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