This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sentFiles = new List<FileTrack>(); | |
foreach (var destination in model.Destinations) | |
{ | |
sentFiles.AddRange(_mover(destination.LocationType).ToDestination(destination, processLog, fileTracker, model.StagingLocation)); | |
} | |
//EXPECTED VALUES HAVE BEEN OVERWROTE WITH LAST VALUE ADDED VIA ADD() | |
fileTracker.Sent = sentFiles; | |
return fileTracker; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( ! $editing ) { | |
$question_args['post_type'] = 'question'; | |
//$question_args["post_status"] = "draft"; | |
$post_id = wp_insert_post( $question_args, true ); | |
$postToTransition = get_post( $post_id ); | |
clean_post_cache($postToTransition->ID); | |
//Need to update post via $WPDB or a method here | |
//anspress()->query->updatePost("publish", $postToTransition); | |
wp_transition_post_status( "publish", "draft", $postToTransition); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add category support in AnsPress questions. | |
* | |
* @author Rahul Aryan <support@anspress.io> | |
* @copyright 2014 AnsPress.io & Rahul Aryan | |
* @license GPL-3.0+ https://www.gnu.org/licenses/gpl-3.0.txt | |
* @link https://anspress.io | |
* @package AnsPress | |
* @subpackage Categories Addon |