WordPress.org

Make WordPress Core

Changeset 20245


Ignore:
Timestamp:
03/21/2012 09:01:05 PM (10 years ago)
Author:
duck_
Message:

Remove dead code from the Links widget. Props pavelevap, SergeyBiryukov. Fixes #19179.

The widget() method isn't called on the admin screen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r20083 r20245  
    106106        $order = $orderby == 'rating' ? 'DESC' : 'ASC';
    107107        $limit = isset( $instance['limit'] ) ? $instance['limit'] : -1;
    108 
    109         if ( is_admin() && !$category ) {
    110             // Display All Links widget as such in the widgets screen
    111             echo $before_widget . $before_title . _x('All Links', 'links widget') . $after_title . $after_widget;
    112             return;
    113         }
    114108
    115109        $before_widget = preg_replace('/id="[^"]*"/','id="%id"', $before_widget);
Note: See TracChangeset for help on using the changeset viewer.