Make WordPress Core

Ticket #36013: 36013.2.patch

File 36013.2.patch, 1.2 KB (added by SergeyBiryukov, 9 years ago)
  • src/wp-admin/includes/dashboard.php

     
    838838                        // Use the post edit link for those who can edit, the permalink otherwise.
    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>",
     842                        printf(
     843                                /* translators: 1: relative date, 2: time */
     844                                '<li><span>' . _x( '%1$s, %2$s', 'dashboard' ) . '</span> <a href="%3$s" aria-label="%4$s">%5$s</a></li>',
    845845                                $relative,
    846846                                get_the_time(),
    847847                                $recent_post_link,
    848                                 $draft_or_post_title,
    849848                                /* translators: %s: post title */
    850                                 esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $draft_or_post_title ) )
     849                                esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $draft_or_post_title ) ),
     850                                $draft_or_post_title
    851851                        );
    852852                }
    853853