WordPress.org

Make WordPress Core

Changeset 1144 in tests


Ignore:
Timestamp:
11/21/12 02:12:58 (17 months ago)
Author:
SergeyBiryukov
Message:

Remove closure from class-wp-export-query.php. see [1130]. see #101.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/export/class-wp-export-query.php

    r1136 r1144  
    237237    } 
    238238 
     239    function _get_term_ids_cb( $c ) { 
     240        return intval( $c->term_id ); 
     241    } 
     242 
    239243    private static function get_term_ids( $terms ) { 
    240         return array_values( array_map( function( $c ) { 
    241             return intval( $c->term_id ); 
    242         }, $terms ) ); 
     244        return array_values( array_map( array( $this, '_get_term_ids_cb' ), $terms ) ); 
    243245    } 
    244246} 
Note: See TracChangeset for help on using the changeset viewer.