WordPress.org

Make WordPress Core

Ticket #19179: 19179.patch

File 19179.patch, 823 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-includes/default-widgets.php

     
    103103                $show_images = isset($instance['images']) ? $instance['images'] : true; 
    104104                $category = isset($instance['category']) ? $instance['category'] : false; 
    105105 
    106                 if ( is_admin() && !$category ) { 
    107                         // Display All Links widget as such in the widgets screen 
    108                         echo $before_widget . $before_title . _x('All Links', 'links widget') . $after_title . $after_widget; 
    109                         return; 
    110                 } 
    111  
    112106                $before_widget = preg_replace('/id="[^"]*"/','id="%id"', $before_widget); 
    113107                wp_list_bookmarks(apply_filters('widget_links_args', array( 
    114108                        'title_before' => $before_title, 'title_after' => $after_title,