Make WordPress Core


Ignore:
Timestamp:
05/17/2014 02:54:03 PM (11 years ago)
Author:
wonderboymusic
Message:

Eliminate the use of extract() in wp_delete_term().

See #22400.

File:
1 edited

Legend:

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

    r28465 r28466  
    20602060
    20612061    $args = wp_parse_args($args, $defaults);
    2062     extract($args, EXTR_SKIP);
    2063 
    2064     if ( isset( $default ) ) {
    2065         $default = (int) $default;
    2066         if ( ! term_exists($default, $taxonomy) )
    2067             unset($default);
     2062
     2063    if ( isset( $args['default'] ) ) {
     2064        $default = (int) $args['default'];
     2065        if ( ! term_exists( $default, $taxonomy ) ) {
     2066            unset( $default );
     2067        }
     2068    }
     2069
     2070    if ( isset( $args['force_default'] ) ) {
     2071        $force_default = $args['force_default'];
    20682072    }
    20692073
Note: See TracChangeset for help on using the changeset viewer.