Make WordPress Core


Ignore:
Timestamp:
02/07/2010 09:59:24 PM (15 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.