Make WordPress Core


Ignore:
Timestamp:
05/06/2014 06:21:50 PM (12 years ago)
Author:
wonderboymusic
Message:

In wp-includes/bookmark.php, remove dead code:

  • In get_bookmarks(), $cache is set twice before it is used.
  • In sanitize_bookmark_field(), break is unreachable after return

See #27882.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/bookmark.php

    r27916 r28316  
    133133        extract( $r, EXTR_SKIP );
    134134
    135         $cache = array();
    136135        $key = md5( serialize( $r ) );
    137136        if ( $cache = wp_cache_get( 'get_bookmarks', 'bookmark' ) ) {
    … …  
    357356                // The 'link_category' filter is for the name of a link category, not an array of a link's link categories
    358357                return $value;
    359                 break;
     358               
    360359        case 'link_visible' : // bool stored as Y|N
    361360                $value = preg_replace('/[^YNyn]/', '', $value);
Note: See TracChangeset for help on using the changeset viewer.