WordPress.org

Make WordPress Core

Changeset 1195 in tests


Ignore:
Timestamp:
01/30/13 10:27:23 (15 months ago)
Author:
nbachiyski
Message:

Switch helper function to static

Since get_term_ids is static the helper needs to be static, too.

See #UT101.

File:
1 edited

Legend:

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

    r1144 r1195  
    237237    } 
    238238 
    239     function _get_term_ids_cb( $c ) { 
     239    private static function get_term_ids( $terms ) { 
     240        return array_values( array_map( array( self, '_get_term_ids_cb' ), $terms ) ); 
     241    } 
     242 
     243    private static function _get_term_ids_cb( $c ) { 
    240244        return intval( $c->term_id ); 
    241245    } 
    242246 
    243     private static function get_term_ids( $terms ) { 
    244         return array_values( array_map( array( $this, '_get_term_ids_cb' ), $terms ) ); 
    245     } 
    246247} 
    247248 
Note: See TracChangeset for help on using the changeset viewer.