WordPress.org

Make WordPress Core

Changeset 36793


Ignore:
Timestamp:
03/01/2016 01:38:28 AM (6 years ago)
Author:
SergeyBiryukov
Message:

I18N: Remove HTML tags from translatable string in wp-admin/includes/dashboard.php.

Props ramiy, SergeyBiryukov.
Fixes #36013.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r36767 r36793  
    839839            $recent_post_link = current_user_can( 'edit_post', get_the_ID() ) ? get_edit_post_link() : get_permalink();
    840840
    841             /* translators: 1: relative date, 2: time, 3: post edit link or permalink, 4: post title, 5: aria label */
    842             $format = __( '<span>%1$s, %2$s</span> <a href="%3$s" aria-label="%5$s">%4$s</a>' );
    843841            $draft_or_post_title = _draft_or_post_title();
    844             printf( "<li>$format</li>",
    845                 $relative,
    846                 get_the_time(),
     842            printf(
     843                '<li><span>%1$s</span> <a href="%2$s" aria-label="%3$s">%4$s</a></li>',
     844                /* translators: 1: relative date, 2: time */
     845                sprintf( _x( '%1$s, %2$s', 'dashboard' ), $relative, get_the_time() ),
    847846                $recent_post_link,
    848                 $draft_or_post_title,
    849847                /* translators: %s: post title */
    850                 esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $draft_or_post_title ) )
     848                esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $draft_or_post_title ) ),
     849                $draft_or_post_title
    851850            );
    852851        }
Note: See TracChangeset for help on using the changeset viewer.