Skip to content

Commit efd8b31

Browse files
committed
Use sprintf instead
1 parent afc4ac2 commit efd8b31

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/wp-admin/includes/class-wp-on-this-day.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ public static function register_widget() {
9292

9393
wp_add_dashboard_widget(
9494
'dashboard_on_this_day',
95-
'<span class="on-this-day-title" data-otd-window-label="' . esc_attr( self::get_window_label( self::get_window_days() ) ) . '">' . __( 'On This Day' ) . '</span>',
95+
sprintf(
96+
'<span class="on-this-day-title" data-otd-window-label="%s">%s</span>',
97+
esc_attr( self::get_window_label( self::get_window_days() ) ),
98+
__( 'On This Day' )
99+
),
96100
array( __CLASS__, 'render_dashboard_widget' )
97101
);
98102
}

0 commit comments

Comments
 (0)