Ticket #36013: 36013.patch
File 36013.patch, 1.3 KB (added by , 9 years ago) |
---|
-
wp-admin/includes/dashboard.php
838 838 // Use the post edit link for those who can edit, the permalink otherwise. 839 839 $recent_post_link = current_user_can( 'edit_post', get_the_ID() ) ? get_edit_post_link() : get_permalink(); 840 840 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>' );843 841 $draft_or_post_title = _draft_or_post_title(); 844 printf( "<li>$format</li>", 842 printf( 843 /* translators: 1: relative date, 2: time, 3: post title */ 844 '<li>' . __( '<span>%1$s, %2$s</span> %3$s' ) . '</li>', 845 845 $relative, 846 846 get_the_time(), 847 $recent_post_link, 848 $draft_or_post_title, 849 /* translators: %s: post title */ 850 esc_attr( sprintf( __( 'Edit “%s”' ), $draft_or_post_title ) ) 847 sprintf( 848 '<a href="%1$s" aria-label="%2$s">%3$s</a>' 849 $recent_post_link, 850 $draft_or_post_title, 851 /* translators: %s: post title */ 852 esc_attr( sprintf( __( 'Edit “%s”' ), $draft_or_post_title ) ) 853 ) 851 854 ); 852 855 } 853 856