WordPress.org

Plugin Directory

Changeset 267054 for edit-flow


Ignore:
Timestamp:
07/25/10 00:19:40 (7 years ago)
Author:
sbressler
Message:

Give QuickPitch stories pitch status by default (http://www.pivotaltracker.com/story/show/3082570)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • edit-flow/trunk/php/dashboard.php

    r256786 r267054  
    4040            check_admin_referer( 'quickpitch-submit', 'ef-quickpitch_nonce' ); 
    4141             
     42            $pitch_status = term_exists( 'pitch', $edit_flow->custom_status->status_taxonomy ) ? 'pitch' : $edit_flow->get_plugin_option('custom_status_default_status'); 
     43             
    4244            // Get WordPress-specific post data 
    4345            $post['post_title'] = esc_sql($_POST['ef_title']); 
    4446            $post['post_author'] = esc_sql($_POST['ef_author']); 
    45             $post['post_status'] = $edit_flow->get_plugin_option('custom_status_default_status'); 
     47            $post['post_status'] = $pitch_status; 
    4648             
    4749            $post_id = wp_insert_post($post); 
Note: See TracChangeset for help on using the changeset viewer.