WordPress.org

Make WordPress Core

Changeset 13017


Ignore:
Timestamp:
02/07/10 21:59:24 (4 years ago)
Author:
westi
Message:

Ensure we don't mangle the array of link categories when sanitising a link for editing. See #12168.

File:
1 edited

Legend:

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

    r12515 r13017  
    326326        $value = (int) $value; 
    327327 
     328    // Fields which contain arrays of ints. 
     329    $array_int_fields = array( 'link_category' ); 
     330    if ( in_array($field, $array_int_fields) ) { 
     331        $value = array_map( 'absint', $value); 
     332        return $value; 
     333    } 
     334 
    328335    $yesno = array('link_visible'); 
    329336    if ( in_array($field, $yesno) ) 
Note: See TracChangeset for help on using the changeset viewer.