Make WordPress Core


Ignore:
Timestamp:
05/11/2010 07:52:50 PM (16 years ago)
Author:
nbachiyski
Message:

I18n for custom post type labels. Props demetris, dimadin. Fixes #12968

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/export.php

    r14509 r14571  
    113113    <option value="all" selected="selected"><?php _e('All Content'); ?></option>
    114114    <?php foreach ( get_post_types( array( 'public' => true, 'can_export' => true ), 'objects' ) as $post_type_obj ) { ?>
    115         <option value="<?php echo $post_type_obj->name; ?>"><?php echo $post_type_obj->label; ?></option>
     115        <option value="<?php echo $post_type_obj->name; ?>"><?php echo $post_type_obj->labels->name; ?></option>
    116116    <?php } ?>
    117117</select>
Note: See TracChangeset for help on using the changeset viewer.