WordPress.org

Make WordPress Core

Changeset 14441


Ignore:
Timestamp:
05/04/10 16:23:25 (4 years ago)
Author:
wpmuguru
Message:

add export property to post types, see #10317

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r14432 r14441  
    5454        'rewrite' => false, 
    5555        'query_var' => false, 
     56        'can_export' => false, 
    5657    ) ); 
    5758 
     
    811812 
    812813    // Args prefixed with an underscore are reserved for internal use. 
    813     $defaults = array('label' => false, 'singular_label' => false, 'description' => '', 'publicly_queryable' => null, 'exclude_from_search' => null, '_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'hierarchical' => false, 'public' => false, 'rewrite' => true, 'query_var' => true, 'supports' => array(), 'register_meta_box_cb' => null, 'taxonomies' => array(), 'show_ui' => null, 'menu_position' => null, 'menu_icon' => null, 'permalink_epmask' => EP_PERMALINK ); 
     814    $defaults = array('label' => false, 'singular_label' => false, 'description' => '', 'publicly_queryable' => null, 'exclude_from_search' => null, '_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'hierarchical' => false, 'public' => false, 'rewrite' => true, 'query_var' => true, 'supports' => array(), 'register_meta_box_cb' => null, 'taxonomies' => array(), 'show_ui' => null, 'menu_position' => null, 'menu_icon' => null, 'permalink_epmask' => EP_PERMALINK, 'can_export' => true ); 
    814815    $args = wp_parse_args($args, $defaults); 
    815816    $args = (object) $args; 
Note: See TracChangeset for help on using the changeset viewer.