WordPress.org

Make WordPress Core

Ticket #39451: 39451.diff

File 39451.diff, 685 bytes (added by dlh, 3 years ago)
  • src/wp-includes/widgets/class-wp-widget-links.php

     
    4848                $order            = $orderby == 'rating' ? 'DESC' : 'ASC';
    4949                $limit            = isset( $instance['limit'] ) ? $instance['limit'] : -1;
    5050
    51                 $before_widget = preg_replace( '/id="[^"]*"/', 'id="%id"', $args['before_widget'] );
     51                $before_widget = preg_replace( '/ id="[^"]*"/', ' id="%id"', $args['before_widget'] );
    5252
    5353                $widget_links_args = array(
    5454                        'title_before'     => $args['before_title'],