We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sprintf
1 parent afc4ac2 commit efd8b31Copy full SHA for efd8b31
1 file changed
src/wp-admin/includes/class-wp-on-this-day.php
@@ -92,7 +92,11 @@ public static function register_widget() {
92
93
wp_add_dashboard_widget(
94
'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>',
+ 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
+ ),
100
array( __CLASS__, 'render_dashboard_widget' )
101
);
102
}
0 commit comments